datocms-plugin-everything-svg 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle.js +1 -1
- package/package.json +1 -1
package/build/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see bundle.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e,t,n={7688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._meta=void 0,this._task=e,this._scheduler=t}withDescriptor(e){return this._descriptor=e,this}withMutex(e){return this._mutex=e,this}withMeta(e){return this._meta=e,this}runBeforeExecuting(e){return this._onPreExecute=e,this}handleCollisions(e){return this._onTaskCollision=e,this}execute(e){return this._scheduler.enqueue({priority:e,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}}},2556:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCollisionStrategy=void 0,(n=t.TaskCollisionStrategy||(t.TaskCollisionStrategy={}))[n.DEFAULT=0]="DEFAULT",n[n.KEEP_THIS=1]="KEEP_THIS",n[n.KEEP_OTHER=2]="KEEP_OTHER",n[n.KEEP_BOTH=3]="KEEP_BOTH",n[n.RESOLVE_THIS=4]="RESOLVE_THIS",n[n.RESOLVE_OTHER=5]="RESOLVE_OTHER"},7026:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(2556),a=o(n(8918)),u=n(6846),s=o(n(7688));var l;function c(e,t){for(let n of e.listeners)n.reject(t)}!function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"}(l||(l={})),t.default=class{constructor(e,t={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=e,this._samePriorityMutex=!!t.samePriorityMutex,this._mutexStrategy=t.mutexStrategy||u.mutexEquality,t.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(e){return new Promise(((t,n)=>{"function"==typeof e&&(e={priority:0,execute:e});const r=this._checkMutexes(e,t,n);r.task?this._addTask(r.task):r.canceled&&n(this.createCanceledError())}))}prepare(e){return new s.default(e,this)}_addTask(e){this._queue.push(e),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce(((e,t)=>t.state===l.EXECUTING?e+1:e),0)}createCanceledError(){return new a.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find((e=>e.state===l.PENDING))}_isIdle(){return 0===this._queue.length||!this._queue.find((e=>e.state!==l.TERMINATED))}_removeTaskAt(e){this._queue.splice(e,1)}_executeTask(e){return r(this,void 0,void 0,(function*(){try{return e.task.onPreExecute&&e.task.onPreExecute(),yield e.task.execute()}catch(e){throw e}finally{e.state=l.TERMINATED;let t=this._queue.indexOf(e);this._removeTaskAt(t),this._executeNextTasks()}}))}_executeNextTasks(){let e=this.executingTasks;if(e>=this._maxConcurrentTasks)return;let t=this._maxConcurrentTasks-e;for(let e=0;e<t;e++){const e=this._findFirstPendingTask();if(!e)return void(this._isIdle()&&this._switchToIdle());e.state=l.EXECUTING,this._executeTask(e).then((t=>{for(const{resolve:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while resolving listener",e)}})).catch((t=>{for(const{reject:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while rejecting listener",e)}}))}}_switchToIdle(){this._isExecuting=!1;const e=this._idleListeners;this._idleListeners=[];for(const{resolve:t}of e)try{t()}catch(e){}}waitForIdle(){return this._isExecuting?new Promise(((e,t)=>{this._idleListeners.push({resolve:e,reject:t})})):Promise.resolve()}_applyPriorities(){this._queue.sort(((e,t)=>t.task.priority-e.task.priority))}_checkMutexes(e,t,n){for(let r=0;r<this._queue.length;r++){let o,a,u=this._queue[r];if(u.state!==l.TERMINATED&&(!this._samePriorityMutex||u.task.priority==e.priority)&&u.task.mutex&&e.mutex&&this._mutexStrategy(u.task.mutex,e.mutex)){if(u.task.onTaskCollision){if(o=u.task.onTaskCollision(e),o===i.TaskCollisionStrategy.KEEP_OTHER&&u.state!==l.EXECUTING){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(o===i.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(o===i.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}};if(o===i.TaskCollisionStrategy.RESOLVE_THIS)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1}}if(e.onTaskCollision){if(a=e.onTaskCollision(u.task),a===i.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(a===i.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(a===i.TaskCollisionStrategy.RESOLVE_OTHER)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1};if(a===i.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}}}if(o!==i.TaskCollisionStrategy.KEEP_BOTH||a!==i.TaskCollisionStrategy.KEEP_BOTH)return{canceled:!0}}}return{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n}]}}}}},8918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._code=e,this._message=t}get code(){return this._code}get message(){return this._message}}},6846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=void 0,t.mutexBitwiseAnd=function(e,t){return!!(e&t)},t.mutexEquality=function(e,t){return e===t}},3271:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=t.SchedulerError=t.TaskCollisionStrategy=t.Scheduler=void 0;const o=r(n(7026));t.Scheduler=o.default;const i=n(2556);Object.defineProperty(t,"TaskCollisionStrategy",{enumerable:!0,get:function(){return i.TaskCollisionStrategy}});const a=r(n(8918));t.SchedulerError=a.default;const u=n(6846);Object.defineProperty(t,"mutexBitwiseAnd",{enumerable:!0,get:function(){return u.mutexBitwiseAnd}}),Object.defineProperty(t,"mutexEquality",{enumerable:!0,get:function(){return u.mutexEquality}})},6454:(e,t,n)=>{"use strict";const r=n(3918),o=n(2923),i=n(8904);e.exports={XMLParser:o,XMLValidator:r,XMLBuilder:i}},5334:(e,t)=>{"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const r=Object.keys(t),o=r.length;for(let i=0;i<o;i++)e[r[i]]="strict"===n?[t[r[i]]]:t[r[i]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==o.exec(e))},t.getAllMatches=function(e,t){const n=[];let r=t.exec(e);for(;r;){const o=[];o.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let e=0;e<i;e++)o.push(r[e]);n.push(o),r=t.exec(e)}return n},t.nameRegexp=r},3918:(e,t,n)=>{"use strict";const r=n(5334),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function a(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const r=e.substr(n,t-n);if(t>5&&"xml"===r)return h("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function u(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},o,t);const n=[];let s=!1,l=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=a(e,o),o.err)return o}else{if("<"!==e[o]){if(i(e[o]))continue;return h("InvalidChar","char '"+e[o]+"' is not expected.",y(e,o))}{let m=o;if(o++,"!"===e[o]){o=u(e,o);continue}{let v=!1;"/"===e[o]&&(v=!0,o++);let g="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)g+=e[o];if(g=g.trim(),"/"===g[g.length-1]&&(g=g.substring(0,g.length-1),o--),f=g,!r.isName(f)){let t;return t=0===g.trim().length?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",h("InvalidTag",t,y(e,o))}const b=c(e,o);if(!1===b)return h("InvalidAttr","Attributes for '"+g+"' have open quote.",y(e,o));let w=b.value;if(o=b.index,"/"===w[w.length-1]){const n=o-w.length;w=w.substring(0,w.length-1);const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,n+r.err.line));s=!0}else if(v){if(!b.tagClosed)return h("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",y(e,o));if(w.trim().length>0)return h("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",y(e,m));if(0===n.length)return h("InvalidTag","Closing tag '"+g+"' has not been opened.",y(e,m));{const t=n.pop();if(g!==t.tagName){let n=y(e,t.tagStartPos);return h("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+g+"'.",y(e,m))}0==n.length&&(l=!0)}}else{const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,o-w.length+r.err.line));if(!0===l)return h("InvalidXml","Multiple possible root nodes found.",y(e,o));-1!==t.unpairedTags.indexOf(g)||n.push({tagName:g,tagStartPos:m}),s=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=u(e,o);continue}if("?"!==e[o+1])break;if(o=a(e,++o),o.err)return o}else if("&"===e[o]){const t=d(e,o);if(-1==t)return h("InvalidChar","char '&' is not expected.",y(e,o));o=t}else if(!0===l&&!i(e[o]))return h("InvalidXml","Extra text at the end",y(e,o));"<"===e[o]&&o--}}}var f;return s?1==n.length?h("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",y(e,n[0].tagStartPos)):!(n.length>0)||h("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};const s='"',l="'";function c(e,t){let n="",r="",o=!1;for(;t<e.length;t++){if(e[t]===s||e[t]===l)""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){o=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:o}}const f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){const n=r.getAllMatches(e,f),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return h("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return h("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const r=n[e][2];if(!m(r))return h("InvalidAttr","Attribute '"+r+"' is an invalid name.",v(n[e]));if(o.hasOwnProperty(r))return h("InvalidAttr","Attribute '"+r+"' is repeated.",v(n[e]));o[r]=1}return!0}function d(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function h(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return r.isName(e)}function y(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}},8904:(e,t,n)=>{"use strict";const r=n(2788),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},o,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=s),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,n){const r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function u(e){return this.options.indentBy.repeat(e)}function s(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},i.prototype.j2x=function(e,t){let n="",r="";for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))if(void 0===e[o])this.isAttribute(o)&&(r+="");else if(null===e[o])this.isAttribute(o)?r+="":"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){const i=this.isAttribute(o);if(i)n+=this.buildAttrPairStr(i,""+e[o]);else if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){const n=e[o].length;let i="";for(let a=0;a<n;a++){const n=e[o][a];void 0===n||(null===n?"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:"object"==typeof n?this.options.oneListGroup?i+=this.j2x(n,t+1).val:i+=this.processTextOrObjNode(n,o,t):i+=this.buildTextValNode(n,o,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,o,"",t)),r+=i}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const t=Object.keys(e[o]),r=t.length;for(let i=0;i<r;i++)n+=this.buildAttrPairStr(t[i],""+e[o][t[i]])}else r+=this.processTextOrObjNode(e[o],o,t);return{attrStr:n,val:r}},i.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,n,r){if(""===e)return"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+n+i+this.tagEndChar+e+this.indentate(r)+o:this.indentate(r)+"<"+t+n+i+">"+e+o}},i.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,n,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+o+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},e.exports=i},2788:e=>{function t(e,a,u,s){let l="",c=!1;for(let f=0;f<e.length;f++){const p=e[f],d=n(p);if(void 0===d)continue;let h="";if(h=0===u.length?d:`${u}.${d}`,d===a.textNodeName){let e=p[d];o(h,a)||(e=a.tagValueProcessor(d,e),e=i(e,a)),c&&(l+=s),l+=e,c=!1;continue}if(d===a.cdataPropName){c&&(l+=s),l+=`<![CDATA[${p[d][0][a.textNodeName]}]]>`,c=!1;continue}if(d===a.commentPropName){l+=s+`\x3c!--${p[d][0][a.textNodeName]}--\x3e`,c=!0;continue}if("?"===d[0]){const e=r(p[":@"],a),t="?xml"===d?"":s;let n=p[d][0][a.textNodeName];n=0!==n.length?" "+n:"",l+=t+`<${d}${n}${e}?>`,c=!0;continue}let m=s;""!==m&&(m+=a.indentBy);const y=s+`<${d}${r(p[":@"],a)}`,v=t(p[d],a,h,m);-1!==a.unpairedTags.indexOf(d)?a.suppressUnpairedNode?l+=y+">":l+=y+"/>":v&&0!==v.length||!a.suppressEmptyNode?v&&v.endsWith(">")?l+=y+`>${v}${s}</${d}>`:(l+=y+">",v&&""!==s&&(v.includes("/>")||v.includes("</"))?l+=s+a.indentBy+v+s:l+=v,l+=`</${d}>`):l+=y+"/>",c=!0}return l}function n(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(e.hasOwnProperty(r)&&":@"!==r)return r}}function r(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!e.hasOwnProperty(r))continue;let o=t.attributeValueProcessor(r,e[r]);o=i(o,t),!0===o&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function o(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+n)return!0;return!1}function i(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const r=t.entities[n];e=e.replace(r.regex,r.val)}return e}e.exports=function(e,n){let r="";return n.format&&n.indentBy.length>0&&(r="\n"),t(e,n,"",r)}},9400:(e,t,n)=>{const r=n(5334);function o(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const r=e[t++];let o="";for(;t<e.length&&e[t]!==r;t++)o+=e[t];return[n,o,t]}function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function u(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function s(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function l(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function c(e){if(r.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let r=1,f=!1,p=!1,d="";for(;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,r--):r--,0===r)break}else"["===e[t]?f=!0:d+=e[t];else{if(f&&a(e,t))t+=7,[entityName,val,t]=o(e,t+1),-1===val.indexOf("&")&&(n[c(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(f&&u(e,t))t+=8;else if(f&&s(e,t))t+=8;else if(f&&l(e,t))t+=9;else{if(!i)throw new Error("Invalid DOCTYPE");p=!0}r++,d=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}},460:(e,t)=>{const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},7680:(e,t,n)=>{"use strict";const r=n(5334),o=n(3832),i=n(9400),a=n(7983);function u(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function s(e,t,n,r,o,i,a){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,o,i);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?w(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function l(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(e,t,n){if(!this.options.ignoreAttributes&&"string"==typeof e){const n=r.getAllMatches(e,c),o=n.length,i={};for(let e=0;e<o;e++){const r=this.resolveNameSpace(n[e][1]);let o=n[e][4],a=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==o){this.options.trimValues&&(o=o.trim()),o=this.replaceEntitiesValue(o);const e=this.options.attributeValueProcessor(r,o,t);i[a]=null==e?o:typeof e!=typeof o||e!==o?e:w(o,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[a]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=i,e}return i}}const p=function(e){e=e.replace(/\r\n?/g,"\n");const t=new o("!xml");let n=t,r="",a="";for(let u=0;u<e.length;u++)if("<"===e[u])if("/"===e[u+1]){const t=v(e,">",u,"Closing Tag is not closed.");let o=e.substring(u+2,t).trim();if(this.options.removeNSPrefix){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}this.options.transformTagName&&(o=this.options.transformTagName(o)),n&&(r=this.saveTextToParentTag(r,n,a));const i=a.substring(a.lastIndexOf(".")+1);if(o&&-1!==this.options.unpairedTags.indexOf(o))throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);let s=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(s=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):s=a.lastIndexOf("."),a=a.substring(0,s),n=this.tagsNodeStack.pop(),r="",u=t}else if("?"===e[u+1]){let t=g(e,u,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new o(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(n,e,a)}u=t.closeIndex+1}else if("!--"===e.substr(u+1,3)){const t=v(e,"--\x3e",u+4,"Comment is not closed.");if(this.options.commentPropName){const o=e.substring(u+4,t-2);r=this.saveTextToParentTag(r,n,a),n.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}u=t}else if("!D"===e.substr(u+1,2)){const t=i(e,u);this.docTypeEntities=t.entities,u=t.i}else if("!["===e.substr(u+1,2)){const t=v(e,"]]>",u,"CDATA is not closed.")-2,o=e.substring(u+9,t);r=this.saveTextToParentTag(r,n,a);let i=this.parseTextData(o,n.tagname,a,!0,!1,!0,!0);null==i&&(i=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]):n.add(this.options.textNodeName,i),u=t+2}else{let i=g(e,u,this.options.removeNSPrefix),s=i.tagName;const l=i.rawTagName;let c=i.tagExp,f=i.attrExpPresent,p=i.closeIndex;this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,a,!1));const d=n;if(d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(n=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),s!==t.tagname&&(a+=a?"."+s:s),this.isItStopNode(this.options.stopNodes,a,s)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===s[s.length-1]?(s=s.substr(0,s.length-1),a=a.substr(0,a.length-1),c=s):c=c.substr(0,c.length-1),u=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(s))u=i.closeIndex;else{const n=this.readStopNodeData(e,l,p+1);if(!n)throw new Error(`Unexpected end of ${l}`);u=n.i,t=n.tagContent}const r=new o(s);s!==c&&f&&(r[":@"]=this.buildAttributesMap(c,a,s)),t&&(t=this.parseTextData(t,s,a,!0,f,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,a)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===s[s.length-1]?(s=s.substr(0,s.length-1),a=a.substr(0,a.length-1),c=s):c=c.substr(0,c.length-1),this.options.transformTagName&&(s=this.options.transformTagName(s));const e=new o(s);s!==c&&f&&(e[":@"]=this.buildAttributesMap(c,a,s)),this.addChild(n,e,a),a=a.substr(0,a.lastIndexOf("."))}else{const e=new o(s);this.tagsNodeStack.push(n),s!==c&&f&&(e[":@"]=this.buildAttributesMap(c,a,s)),this.addChild(n,e,a),n=e}r="",u=p}}else r+=e[u];return t.child};function d(e,t,n){const r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t))}const h=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function y(e,t,n){const r="*."+n;for(const n in e){const o=e[n];if(r===o||t===o)return!0}return!1}function v(e,t,n,r){const o=e.indexOf(t,n);if(-1===o)throw new Error(r);return o+t.length-1}function g(e,t,n,r=">"){const o=function(e,t,n=">"){let r,o="";for(let i=t;i<e.length;i++){let t=e[i];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:o,index:i};if(e[i+1]===n[1])return{data:o,index:i}}else"\t"===t&&(t=" ");o+=t}}(e,t+1,r);if(!o)return;let i=o.data;const a=o.index,u=i.search(/\s/);let s=i,l=!0;-1!==u&&(s=i.substring(0,u),i=i.substring(u+1).trimStart());const c=s;if(n){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1),l=s!==o.data.substr(e+1))}return{tagName:s,tagExp:i,closeIndex:a,attrExpPresent:l,rawTagName:c}}function b(e,t,n){const r=n;let o=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=v(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(o--,0===o))return{tagContent:e.substring(r,n),i};n=i}else if("?"===e[n+1])n=v(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=v(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=v(e,"]]>",n,"StopNode is not closed.")-2;else{const r=g(e,n,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&o++,n=r.closeIndex)}}function w(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=s,this.resolveNameSpace=l,this.buildAttributesMap=f,this.isItStopNode=y,this.replaceEntitiesValue=h,this.readStopNodeData=b,this.saveTextToParentTag=m,this.addChild=d}}},2923:(e,t,n)=>{const{buildOptions:r}=n(460),o=n(7680),{prettify:i}=n(5629),a=n(3918);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=a.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new o(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:i(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},5629:(e,t)=>{"use strict";function n(e,t,a){let u;const s={};for(let l=0;l<e.length;l++){const c=e[l],f=r(c);let p="";if(p=void 0===a?f:a+"."+f,f===t.textNodeName)void 0===u?u=c[f]:u+=""+c[f];else{if(void 0===f)continue;if(c[f]){let e=n(c[f],t,p);const r=i(e,t);c[":@"]?o(e,c[":@"],p,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==s[f]&&s.hasOwnProperty(f)?(Array.isArray(s[f])||(s[f]=[s[f]]),s[f].push(e)):t.isArray(f,p,r)?s[f]=[e]:s[f]=e}}}return"string"==typeof u?u.length>0&&(s[t.textNodeName]=u):void 0!==u&&(s[t.textNodeName]=u),s}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function o(e,t,n,r){if(t){const o=Object.keys(t),i=o.length;for(let a=0;a<i;a++){const i=o[a];r.isArray(i,n+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function i(e,t){const{textNodeName:n}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}t.prettify=function(e,t){return n(e,t)}},3832:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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},u={};function s(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=s(t),m=s(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||u&&u[v])){var g=p(n,v);try{l(t,v,g)}catch(e){}}}}return t}},1549:(e,t,n)=>{var r=n(2032),o=n(3862),i=n(6721),a=n(2749),u=n(5749);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},79:(e,t,n)=>{var r=n(3702),o=n(80),i=n(4739),a=n(8655),u=n(1175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},3661:(e,t,n)=>{var r=n(3040),o=n(7670),i=n(289),a=n(4509),u=n(2949);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},2552:(e,t,n)=>{var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),i=n(3805),a=n(7473),u=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,f=l.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:u).test(a(e))}},7556:(e,t,n)=>{var r=n(1873),o=n(4932),i=n(6449),a=n(4394),u=r?r.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1769:(e,t,n)=>{var r=n(6449),o=n(8586),i=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8586:(e,t,n)=>{var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,n)=>{var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1802:(e,t,n)=>{var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},6449:e=>{var t=Array.isArray;e.exports=t},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},104:(e,t,n)=>{var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},4482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5884),o=n(5363);t.default=(e,t,n)=>{const i=e.localName,a=e.local,u=e.remote,s=e.originForSending,l=e.originForReceiving;let c=!1;n(`${i}: Connecting call receiver`);const f=e=>{if(e.source!==u||e.data.penpal!==r.CALL)return;if(e.origin!==l)return void n(`${i} received message from origin ${e.origin} which did not match expected origin ${l}`);const a=e.data,f=a.methodName,p=a.args,d=a.id;n(`${i}: Received ${f}() call`);const h=e=>t=>{if(n(`${i}: Sending ${f}() reply`),c)return void n(`${i}: Unable to send ${f}() reply due to destroyed connection`);const a={penpal:r.REPLY,id:d,resolution:e,returnValue:t};e===r.REJECTED&&t instanceof Error&&(a.returnValue=(0,o.serializeError)(t),a.returnValueIsError=!0);try{u.postMessage(a,s)}catch(e){throw e.name===r.DATA_CLONE_ERROR&&u.postMessage({penpal:r.REPLY,id:d,resolution:r.REJECTED,returnValue:(0,o.serializeError)(e),returnValueIsError:!0},s),e}};new Promise((e=>e(t[f].apply(t,p)))).then(h(r.FULFILLED),h(r.REJECTED))};return a.addEventListener(r.MESSAGE,f),()=>{c=!0,a.removeEventListener(r.MESSAGE,f)}},e.exports=t.default},2502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(5884),i=n(8005),a=(r=n(1043))&&r.__esModule?r:{default:r},u=n(5363);t.default=(e,t,n,r,s)=>{const l=t.localName,c=t.local,f=t.remote,p=t.originForSending,d=t.originForReceiving;let h=!1;return s(`${l}: Connecting call sender`),n.reduce(((e,t)=>(e[t]=(e=>function(){for(var t=arguments.length,n=new Array(t),m=0;m<t;m++)n[m]=arguments[m];let y;s(`${l}: Sending ${e}() call`);try{f.closed&&(y=!0)}catch(e){y=!0}if(y&&r(),h){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=i.ERR_CONNECTION_DESTROYED,t}return new Promise(((t,r)=>{const i=(0,a.default)(),h=n=>{if(n.source!==f||n.data.penpal!==o.REPLY||n.data.id!==i)return;if(n.origin!==d)return void s(`${l} received message from origin ${n.origin} which did not match expected origin ${d}`);s(`${l}: Received ${e}() reply`),c.removeEventListener(o.MESSAGE,h);let a=n.data.returnValue;n.data.returnValueIsError&&(a=(0,u.deserializeError)(a)),(n.data.resolution===o.FULFILLED?t:r)(a)};c.addEventListener(o.MESSAGE,h),f.postMessage({penpal:o.CALL,id:i,methodName:e,args:n},p)}))})(t),e)),e),()=>{h=!0}},e.exports=t.default},7414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5884),o=n(8005),i=l(n(686)),a=l(n(4482)),u=l(n(2502)),s=l(n(6913));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentOrigin,n=void 0===t?"*":t,l=e.methods,c=void 0===l?{}:l,f=e.timeout,p=e.debug;const d=(0,s.default)(p);if(window===window.top){const e=new Error("connectToParent() must be called within an iframe");throw e.code=o.ERR_NOT_IN_IFRAME,e}const h=(0,i.default)(),m=h.destroy,y=h.onDestroy,v=window,g=v.parent;return{promise:new Promise(((e,t)=>{let i;void 0!==f&&(i=setTimeout((()=>{const e=new Error(`Connection to parent timed out after ${f}ms`);e.code=o.ERR_CONNECTION_TIMEOUT,t(e),m()}),f));const s=t=>{try{clearTimeout()}catch(e){return}if(t.source!==g||t.data.penpal!==r.HANDSHAKE_REPLY)return;if("*"!==n&&n!==t.origin)return void d(`Child received handshake reply from origin ${t.origin} which did not match expected origin ${n}`);d("Child: Received handshake reply"),v.removeEventListener(r.MESSAGE,s);const o={localName:"Child",local:v,remote:g,originForSending:"null"===t.origin?"*":t.origin,originForReceiving:t.origin},l={},f=(0,a.default)(o,c,d);y(f);const p=(0,u.default)(l,o,t.data.methodNames,m,d);y(p),clearTimeout(i),e(l)};v.addEventListener(r.MESSAGE,s),y((()=>{v.removeEventListener(r.MESSAGE,s);const e=new Error("Connection destroyed");e.code=o.ERR_CONNECTION_DESTROYED,t(e)})),d("Child: Sending handshake"),g.postMessage({penpal:r.HANDSHAKE,methodNames:Object.keys(c)},n)})),destroy:m}},e.exports=t.default},5884:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DATA_CLONE_ERROR=t.MESSAGE=t.REJECTED=t.FULFILLED=t.REPLY=t.CALL=t.HANDSHAKE_REPLY=t.HANDSHAKE=void 0,t.HANDSHAKE="handshake",t.HANDSHAKE_REPLY="handshake-reply",t.CALL="call",t.REPLY="reply",t.FULFILLED="fulfilled",t.REJECTED="rejected",t.MESSAGE="message",t.DATA_CLONE_ERROR="DataCloneError"},686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=()=>{const e=[];let t=!1;return{destroy(){t=!0,e.forEach((e=>{e()}))},onDestroy(n){t?n():e.push(n)}}},e.exports=t.default},6913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=e=>function(){if(e){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.log("[Penpal]",...n)}},e.exports=t.default},8005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERR_NO_IFRAME_SRC=t.ERR_NOT_IN_IFRAME=t.ERR_CONNECTION_TIMEOUT=t.ERR_CONNECTION_DESTROYED=void 0,t.ERR_CONNECTION_DESTROYED="ConnectionDestroyed",t.ERR_CONNECTION_TIMEOUT="ConnectionTimeout",t.ERR_NOT_IN_IFRAME="NotInIframe",t.ERR_NO_IFRAME_SRC="NoIframeSrc"},5363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeError=t.serializeError=void 0,t.serializeError=e=>({name:e.name,message:e.message,stack:e.stack}),t.deserializeError=e=>{const t=new Error;return Object.keys(e).forEach((n=>t[n]=e[n])),t}},1043:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=0;t.default=()=>++n,e.exports=t.default},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,u={};function s(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(d,e)&&(p.test(e)?h[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var F,A=Object.assign;function M(e){if(void 0===F)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var V=!1;function z(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=u);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function U(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case O:return"Profiler";case x:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:B(n)}}function ie(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ve=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Se=null,xe=null;function Oe(e){if(e=wo(e)){if("function"!=typeof Ee)throw Error(i(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function ke(e){Se?xe?xe.push(e):xe=[e]:Se=e}function Pe(){if(Se){var e=Se,t=xe;if(xe=Se=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Te(e,t){return e(t)}function Ce(){}var Ie=!1;function Ne(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Te(e,t,n)}finally{Ie=!1,(null!==Se||null!==xe)&&(Ce(),Pe())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=Eo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Le=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Le=!1}function Re(e,t,n,r,o,i,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Fe=!1,Ae=null,Me=!1,Ve=null,ze={onError:function(e){Fe=!0,Ae=e}};function Ue(e,t,n,r,o,i,a,u,s){Fe=!1,Ae=null,Re.apply(ze,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Be(e){if(qe(e)!==e)throw Error(i(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Be(o),e;if(a===r)return Be(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,s=o.child;s;){if(s===n){u=!0,n=o,r=a;break}if(s===r){u=!0,r=o,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=o;break}if(s===r){u=!0,r=a,n=o;break}s=s.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,We=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ut(e)/st|0)|0},ut=Math.log,st=Math.LN2,lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var u=a&~o;0!==u?r=ft(u):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,Et,St,xt,Ot,kt=!1,Pt=[],Tt=null,Ct=null,It=null,Nt=new Map,jt=new Map,Lt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function Ft(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&Et(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ot(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Et(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Vt(e,t,n){Mt(e)&&n.delete(t)}function zt(){kt=!1,null!==Tt&&Mt(Tt)&&(Tt=null),null!==Ct&&Mt(Ct)&&(Ct=null),null!==It&&Mt(It)&&(It=null),Nt.forEach(Vt),jt.forEach(Vt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Ct&&Ut(Ct,e),null!==It&&Ut(It,e),Nt.forEach(t),jt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)At(n),null===n.blockedOn&&Lt.shift()}var Ht=w.ReactCurrentBatchConfig,Bt=!0;function $t(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Gt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Yt(e,t,n,r){if(Bt){var o=Qt(e,t,n,r);if(null===o)Br(e,t,r,Wt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Ft(Tt,e,t,n,r,o),!0;case"dragenter":return Ct=Ft(Ct,e,t,n,r,o),!0;case"mouseover":return It=Ft(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,Ft(Nt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,jt.set(i,Ft(jt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&_t(i),null===(i=Qt(e,t,n,r))&&Br(e,t,r,Wt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Wt=null;function Qt(e,t,n,r){if(Wt=null,null!==(e=bo(e=_e(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,un,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),fn=A({},ln,{view:0,detail:0}),pn=on(fn),dn=A({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,un=e.screenY-sn.screenY):un=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:un}}),hn=on(dn),mn=on(A({},dn,{dataTransfer:0})),yn=on(A({},fn,{relatedTarget:0})),vn=on(A({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=A({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(A({},ln,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function On(){return xn}var kn=A({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(kn),Tn=on(A({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=on(A({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),In=on(A({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=A({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(Nn),Ln=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Rn=null;c&&"documentMode"in document&&(Rn=document.documentMode);var Fn=c&&"TextEvent"in window&&!Rn,An=c&&(!Dn||Rn&&8<Rn&&11>=Rn),Mn=String.fromCharCode(32),Vn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){ke(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function Wn(e){Mr(e,0)}function Qn(e){if(Y(_o(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Yn=Gn=null)}function nr(e){if("value"===e.propertyName&&Qn(Yn)){var t=[];$n(t,Yn,e,_e(e)),Ne(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Yn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!ur(e[o],t[o]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==W(r)||(r="selectionStart"in(r=yr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Sr={},xr={};function Or(e){if(Sr[e])return Sr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return Sr[e]=n[t];return e}c&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var kr=Or("animationend"),Pr=Or("animationiteration"),Tr=Or("animationstart"),Cr=Or("transitionend"),Ir=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Ir.set(e,t),s(t,[e])}for(var Lr=0;Lr<Nr.length;Lr++){var Dr=Nr[Lr];jr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}jr(kr,"onAnimationEnd"),jr(Pr,"onAnimationIteration"),jr(Tr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Cr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,u,s,l){if(Ue.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var c=Ae;Fe=!1,Ae=null,Me||(Me=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;Ar(o,u,l),i=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;Ar(o,u,l),i=s}}}if(Me)throw e=Ve,Me=!1,Ve=null,e}function Vr(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Kt(t)){case 1:var o=$t;break;case 4:o=Gt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=bo(u)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}u=u.parentNode}}r=r.return}Ne((function(){var r=i,o=_e(n),a=[];e:{var u=Ir.get(e);if(void 0!==u){var s=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":l="focus",s=yn;break;case"focusout":l="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Cn;break;case kr:case Pr:case Tr:s=vn;break;case Cr:s=In;break;case"scroll":s=pn;break;case"wheel":s=jn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=!!(4&t),f=!c&&"scroll"===e,p=c?null!==u?u+"Capture":null:u;c=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&null!=(m=je(h,p))&&c.push($r(h,m,d))),f)break;h=h.return}0<c.length&&(u=new s(u,l,null,n,o),a.push({event:u,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!bo(l)&&!l[mo])&&(s||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?bo(l):null)&&(l!==(f=qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==s?u:_o(s),d=null==l?u:_o(l),(u=new c(m,h+"leave",s,n,o)).target=f,u.relatedTarget=d,m=null,bo(o)===r&&((c=new c(p,h+"enter",l,n,o)).target=d,c.relatedTarget=f,m=c),f=m,s&&l)e:{for(p=l,h=0,d=c=s;d;d=Yr(d))h++;for(d=0,m=p;m;m=Yr(m))d++;for(;0<h-d;)c=Yr(c),h--;for(;0<d-h;)p=Yr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Yr(c),p=Yr(p)}c=null}else c=null;null!==s&&Wr(a,u,s,c,!1),null!==l&&null!==f&&Wr(a,f,l,c,!0)}if("select"===(s=(u=r?_o(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var y=Kn;else if(Bn(u))if(Xn)y=ar;else{y=or;var v=rr}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(y=ir);switch(y&&(y=y(e,r))?$n(a,y,n,o):(v&&v(e,u,r),"focusout"===e&&(v=u._wrapperState)&&v.controlled&&"number"===u.type&&ee(u,"number",u.value)),v=r?_o(r):window,e){case"focusin":(Bn(v)||"true"===v.contentEditable)&&(yr=v,vr=r,gr=null);break;case"focusout":gr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(An&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,qn=!0)),0<(v=Gr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),(g||null!==(g=Un(n)))&&(b.data=g))),(g=Fn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Vn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return An&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Gr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Mr(a,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=je(e,n))&&r.unshift($r(e,i,o)),null!=(i=je(e,t))&&r.push($r(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,o?null!=(s=je(n,i))&&a.unshift($r(n,s,u)):o||null!=(s=je(n,i))&&a.push($r(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Kr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(uo)}:ro;function uo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function lo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,yo="__reactEvents$"+fo,vo="__reactListeners$"+fo,go="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Eo(e){return e[ho]||null}var So=[],xo=-1;function Oo(e){return{current:e}}function ko(e){0>xo||(e.current=So[xo],So[xo]=null,xo--)}function Po(e,t){xo++,So[xo]=e.current,e.current=t}var To={},Co=Oo(To),Io=Oo(!1),No=To;function jo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=e.childContextTypes}function Do(){ko(Io),ko(Co)}function Ro(e,t,n){if(Co.current!==To)throw Error(i(168));Po(Co,t),Po(Io,n)}function Fo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return A({},n,r)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,No=Co.current,Po(Co,e),Po(Io,Io.current),!0}function Mo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Fo(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,ko(Io),ko(Co),Po(Co,e)):ko(Io),Po(Io,n)}var Vo=null,zo=!1,Uo=!1;function qo(e){null===Vo?Vo=[e]:Vo.push(e)}function Ho(){if(!Uo&&null!==Vo){Uo=!0;var e=0,t=bt;try{var n=Vo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vo=null,zo=!1}catch(t){throw null!==Vo&&(Vo=Vo.slice(e+1)),Ye(Ze,Ho),t}finally{bt=t,Uo=!1}}return null}var Bo=[],$o=0,Go=null,Yo=0,Wo=[],Qo=0,Ko=null,Xo=1,Jo="";function Zo(e,t){Bo[$o++]=Yo,Bo[$o++]=Go,Go=e,Yo=t}function ei(e,t,n){Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Ko=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Bo[--$o],Bo[$o]=null,Yo=Bo[--$o],Bo[$o]=null;for(;e===Ko;)Ko=Wo[--Qo],Wo[Qo]=null,Jo=Wo[--Qo],Wo[Qo]=null,Xo=Wo[--Qo],Wo[Qo]=null}var ri=null,oi=null,ii=!1,ai=null;function ui(e,t){var n=Nl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=lo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function li(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!si(e,t)){if(li(e))throw Error(i(418));t=lo(n.nextSibling);var r=ri;t&&si(e,t)?ui(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(li(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(li(e))throw di(),Error(i(418));for(;t;)ui(e,t),t=lo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=lo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?lo(e.stateNode.nextSibling):null;return!0}function di(){for(var e=oi;e;)e=lo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var yi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ll(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Al(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===j&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Dl(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ml(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Rl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Al(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Dl(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case E:return(t=Ml(t,e.mode,n)).return=e,t;case j:return p(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Rl(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?l(e,t,n,r):null;case E:return n.key===o?c(e,t,n,r):null;case j:return d(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:f(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case j:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return f(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function m(o,i,u,s){for(var l=null,c=null,f=i,m=i=0,y=null;null!==f&&m<u.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=d(o,f,u[m],s);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,m),null===c?l=v:c.sibling=v,c=v,f=y}if(m===u.length)return n(o,f),ii&&Zo(o,m),l;if(null===f){for(;m<u.length;m++)null!==(f=p(o,u[m],s))&&(i=a(f,i,m),null===c?l=f:c.sibling=f,c=f);return ii&&Zo(o,m),l}for(f=r(o,f);m<u.length;m++)null!==(y=h(f,o,m,u[m],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),l}function y(o,u,s,l){var c=R(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var f=c=null,m=u,y=u=0,v=null,g=s.next();null!==m&&!g.done;y++,g=s.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=d(o,m,g.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),u=a(b,u,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),ii&&Zo(o,y),c;if(null===m){for(;!g.done;y++,g=s.next())null!==(g=p(o,g.value,l))&&(u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return ii&&Zo(o,y),c}for(m=r(o,m);!g.done;y++,g=s.next())null!==(g=h(m,o,y,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,y),c}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var l=a.key,c=i;null!==c;){if(c.key===l){if((l=a.type)===S){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===j&&bi(l)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=vi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((i=Rl(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Dl(a.type,a.key,a.props,null,r.mode,s)).ref=vi(r,i,a),s.return=r,r=s)}return u(r);case E:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ml(a,r.mode,s)).return=r,r=i}return u(r);case j:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return m(r,i,a,s);if(R(a))return y(r,i,a,s);gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Al(a,r.mode,s)).return=r,r=i),u(r)):n(r,i)}}var _i=wi(!0),Ei=wi(!1),Si=Oo(null),xi=null,Oi=null,ki=null;function Pi(){ki=Oi=xi=null}function Ti(e){var t=Si.current;ko(Si),e._currentValue=t}function Ci(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t){xi=e,ki=Oi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bu=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===Oi){if(null===xi)throw Error(i(308));Oi=e,xi.dependencies={lanes:0,firstContext:e}}else Oi=Oi.next=e;return t}var ji=null;function Li(e){null===ji?ji=[e]:ji.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Li(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ri(e,r)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Fi=!1;function Ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ts){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ri(e,n)}return null===(o=r.interleaved)?(t.next=t,Li(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ri(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;Fi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,l=s.next;s.next=null,null===a?i=l:a.next=l,a=s;var c=e.alternate;null!==c&&(u=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===u?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s)}if(null!==i){var f=o.baseState;for(a=0,c=l=s=null,u=i;;){var p=u.lane,d=u.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,m=u;switch(p=t,d=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(d,f,p);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(d,f,p):h))break e;f=A({},f,p);break e;case 2:Fi=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(l=c=d,s=f):c=c.next=d,a|=p;if(null===(u=u.next)){if(null===(u=o.shared.pending))break;u=(p=u).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=f),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Fs|=a,e.lanes=a,e.memoizedState=f}}function Bi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var $i={},Gi=Oo($i),Yi=Oo($i),Wi=Oo($i);function Qi(e){if(e===$i)throw Error(i(174));return e}function Ki(e,t){switch(Po(Wi,t),Po(Yi,e),Po(Gi,$i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(Gi),Po(Gi,t)}function Xi(){ko(Gi),ko(Yi),ko(Wi)}function Ji(e){Qi(Wi.current);var t=Qi(Gi.current),n=se(t,e.type);t!==n&&(Po(Yi,e),Po(Gi,n))}function Zi(e){Yi.current===e&&(ko(Gi),ko(Yi))}var ea=Oo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,ua=null,sa=null,la=null,ca=!1,fa=!1,pa=0,da=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ya(e,t,n,r,o,a){if(aa=a,ua=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:eu,e=n(r,o),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(i(301));a+=1,la=sa=null,t.updateQueue=null,oa.current=tu,e=n(r,o)}while(fa)}if(oa.current=Ja,t=null!==sa&&null!==sa.next,aa=0,la=sa=ua=null,ca=!1,t)throw Error(i(300));return e}function va(){var e=0!==pa;return pa=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?ua.memoizedState=la=e:la=la.next=e,la}function ba(){if(null===sa){var e=ua.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===la?ua.memoizedState:la.next;if(null!==t)la=t,sa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===la?ua.memoizedState=la=e:la=la.next=e}return la}function wa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=sa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var u=o.next;o.next=a.next,a.next=u}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=u=null,l=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=p,u=r):l=l.next=p,ua.lanes|=f,Fs|=f}c=c.next}while(null!==c&&c!==a);null===l?u=r:l.next=s,ur(r,t.memoizedState)||(bu=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ua.lanes|=a,Fs|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ea(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{a=e(a,u.action),u=u.next}while(u!==o);ur(a,t.memoizedState)||(bu=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function xa(e,t){var n=ua,r=ba(),o=t(),a=!ur(r.memoizedState,o);if(a&&(r.memoizedState=o,bu=!0),r=r.queue,Fa(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Na(9,ka.bind(null,n,r,o,t),void 0,null),null===Cs)throw Error(i(349));30&aa||Oa(n,t,o)}return o}function Oa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ua.updateQueue)?(t={lastEffect:null,stores:null},ua.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ca(e)}function Pa(e,t,n){return n((function(){Ta(t)&&Ca(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch(e){return!0}}function Ca(e){var t=Ri(e,1);null!==t&&nl(t,e,1,-1)}function Ia(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Wa.bind(null,ua,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ua.updateQueue)?(t={lastEffect:null,stores:null},ua.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return ba().memoizedState}function La(e,t,n,r){var o=ga();ua.flags|=e,o.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Na(t,n,i,r))}ua.flags|=e,o.memoizedState=Na(1|t,n,i,r)}function Ra(e,t){return La(8390656,8,e,t)}function Fa(e,t){return Da(2048,8,e,t)}function Aa(e,t){return Da(4,2,e,t)}function Ma(e,t){return Da(4,4,e,t)}function Va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,Da(4,4,Va.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ba(e,t,n){return 21&aa?(ur(n,t)||(n=mt(),ua.lanes|=n,Fs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bu=!0),e.memoizedState=n)}function $a(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ga(){return ba().memoizedState}function Ya(e,t,n){var r=tl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e)?Ka(t,n):null!==(n=Di(e,t,n,r))&&(nl(n,e,r,el()),Xa(n,t,r))}function Wa(e,t,n){var r=tl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Ka(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,ur(u,a)){var s=t.interleaved;return null===s?(o.next=o,Li(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(nl(n,e,r,o=el()),Xa(n,t,r))}}function Qa(e){var t=e.alternate;return e===ua||null!==t&&t===ua}function Ka(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Ja={readContext:Ni,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ni,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:Ra,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,La(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,ua,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:Ia,useDebugValue:Ua,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=$a.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ua,o=ga();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Cs)throw Error(i(349));30&aa||Oa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ra(Pa.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ga(),t=Cs.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=da++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eu={readContext:Ni,useCallback:qa,useContext:Ni,useEffect:Fa,useImperativeHandle:za,useInsertionEffect:Aa,useLayoutEffect:Ma,useMemo:Ha,useReducer:_a,useRef:ja,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ba(ba(),sa.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:xa,useId:Ga,unstable_isNewReconciler:!1},tu={readContext:Ni,useCallback:qa,useContext:Ni,useEffect:Fa,useImperativeHandle:za,useInsertionEffect:Aa,useLayoutEffect:Ma,useMemo:Ha,useReducer:Ea,useRef:ja,useState:function(){return Ea(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===sa?t.memoizedState=e:Ba(t,sa.memoizedState,e)},useTransition:function(){return[Ea(wa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:xa,useId:Ga,unstable_isNewReconciler:!1};function nu(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ru(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ou={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),i=Vi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(nl(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),i=Vi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(nl(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),o=Vi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(nl(t,e,r,n),Ui(t,e,r))}};function iu(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,i))}function au(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Ni(i):(o=Lo(t)?No:Co.current,i=(r=null!=(r=t.contextTypes))?jo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ou,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function uu(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ou.enqueueReplaceState(t,t.state,null)}function su(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ni(i):(i=Lo(t)?No:Co.current,o.context=jo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ru(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ou.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function lu(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cu(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fu(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pu="function"==typeof WeakMap?WeakMap:Map;function du(e,t,n){(n=Vi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bs||(Bs=!0,$s=r),fu(0,t)},n}function hu(e,t,n){(n=Vi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fu(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fu(0,t),"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pu;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ol.bind(null,e,t,n),t.then(e,e))}function yu(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vu(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Vi(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var gu=w.ReactCurrentOwner,bu=!1;function wu(e,t,n,r){t.child=null===e?Ei(t,null,n,r):_i(t,e.child,n,r)}function _u(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ya(e,t,n,r,i,o),n=va(),null===e||bu?(ii&&n&&ti(t),t.flags|=1,wu(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bu(e,t,o))}function Eu(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||jl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Su(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Bu(e,t,o)}return t.flags|=1,(e=Ll(i,r)).ref=t.ref,e.return=t,t.child=e}function Su(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(bu=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Bu(e,t,o);131072&e.flags&&(bu=!0)}}return ku(e,t,n,r,o)}function xu(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ls,js),js|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(Ls,js),js|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ls,js),js|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(Ls,js),js|=r;return wu(e,t,o,n),t.child}function Ou(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,n,r,o){var i=Lo(n)?No:Co.current;return i=jo(t,i),Ii(t,o),n=ya(e,t,n,r,i,o),r=va(),null===e||bu?(ii&&r&&ti(t),t.flags|=1,wu(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bu(e,t,o))}function Pu(e,t,n,r,o){if(Lo(n)){var i=!0;Ao(t)}else i=!1;if(Ii(t,o),null===t.stateNode)Hu(e,t),au(t,n,r),su(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;l="object"==typeof l&&null!==l?Ni(l):jo(t,l=Lo(n)?No:Co.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||s!==l)&&uu(t,a,r,l),Fi=!1;var p=t.memoizedState;a.state=p,Hi(t,r,a,o),s=t.memoizedState,u!==r||p!==s||Io.current||Fi?("function"==typeof c&&(ru(t,n,c,r),s=t.memoizedState),(u=Fi||iu(t,n,u,r,p,s,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Mi(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:nu(t.type,u),a.props=l,f=t.pendingProps,p=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Ni(s):jo(t,s=Lo(n)?No:Co.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==f||p!==s)&&uu(t,a,r,s),Fi=!1,p=t.memoizedState,a.state=p,Hi(t,r,a,o);var h=t.memoizedState;u!==f||p!==h||Io.current||Fi?("function"==typeof d&&(ru(t,n,d,r),h=t.memoizedState),(l=Fi||iu(t,n,l,r,p,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Tu(e,t,n,r,i,o)}function Tu(e,t,n,r,o,i){Ou(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Mo(t,n,!1),Bu(e,t,i);r=t.stateNode,gu.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,u,i)):wu(e,t,u,i),t.memoizedState=r.state,o&&Mo(t,n,!0),t.child}function Cu(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),Ki(e,t.containerInfo)}function Iu(e,t,n,r,o){return hi(),mi(o),t.flags|=256,wu(e,t,n,r),t.child}var Nu,ju,Lu,Du,Ru={dehydrated:null,treeContext:null,retryLane:0};function Fu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Au(e,t,n){var r,o=t.pendingProps,a=ea.current,u=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(u=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,u?(o=t.mode,u=t.child,s={mode:"hidden",children:s},1&o||null===u?u=Fl(s,o,0,null):(u.childLanes=0,u.pendingProps=s),e=Rl(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Fu(n),t.memoizedState=Ru,e):Mu(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,u){if(n)return 256&t.flags?(t.flags&=-257,Vu(e,t,u,r=cu(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Fl({mode:"visible",children:r.children},o,0,null),(a=Rl(a,o,u,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&_i(t,e.child,null,u),t.child.memoizedState=Fu(u),t.memoizedState=Ru,a);if(!(1&t.mode))return Vu(e,t,u,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Vu(e,t,u,r=cu(a=Error(i(419)),r,void 0))}if(s=!!(u&e.childLanes),bu||s){if(null!==(r=Cs)){switch(u&-u){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|u)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ri(e,o),nl(r,e,o,-1))}return ml(),Vu(e,t,u,r=cu(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Pl.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=lo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Xo=e.id,Jo=e.overflow,Ko=t),(t=Mu(t,r.children)).flags|=4096,t)}(e,t,s,o,r,a,n);if(u){u=o.fallback,s=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=Ll(a,l)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==r?u=Ll(r,u):(u=Rl(u,s,n,null)).flags|=2,u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,s=null===(s=e.child.memoizedState)?Fu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~n,t.memoizedState=Ru,o}return e=(u=e.child).sibling,o=Ll(u,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Mu(e,t){return(t=Fl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vu(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=Mu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ci(e.return,t,n)}function Uu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qu(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wu(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zu(e,n,t);else if(19===e.tag)zu(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Uu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Uu(t,!0,n,null,i);break;case"together":Uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hu(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ll(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ll(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $u(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gu(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yu(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gu(t),null;case 1:case 17:return Lo(t.type)&&Do(),Gu(t),null;case 3:return r=t.stateNode,Xi(),ko(Io),ko(Co),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(al(ai),ai=null))),ju(e,t),Gu(t),null;case 5:Zi(t);var o=Qi(Wi.current);if(n=t.type,null!==e&&null!=t.stateNode)Lu(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Gu(t),null}if(e=Qi(Gi.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)Vr(Rr[o],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":K(r,a),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Vr("invalid",r);break;case"textarea":oe(r,a),Vr("invalid",r)}for(var s in ge(n,a),o=null,a)if(a.hasOwnProperty(s)){var l=a[s];"children"===s?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),o=["children",""+l]):u.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Vr("scroll",r)}switch(n){case"input":G(r),Z(r,a,!0);break;case"textarea":G(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Nu(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Vr("cancel",e),Vr("close",e),o=r;break;case"iframe":case"object":case"embed":Vr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)Vr(Rr[o],e);o=r;break;case"source":Vr("error",e),o=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),o=r;break;case"details":Vr("toggle",e),o=r;break;case"input":K(e,r),o=Q(e,r),Vr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=A({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Vr("invalid",e)}for(a in ge(n,o),l=o)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ye(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Vr("scroll",e):null!=c&&b(e,a,c,s))}switch(n){case"input":G(e),Z(e,r,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+B(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gu(t),null;case 6:if(e&&null!=t.stateNode)Du(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Qi(Wi.current),Qi(Gi.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Gu(t),null;case 13:if(ko(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))di(),hi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gu(t),a=!1}else null!==ai&&(al(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ds&&(Ds=3):ml())),null!==t.updateQueue&&(t.flags|=4),Gu(t),null);case 4:return Xi(),ju(e,t),null===e&&qr(t.stateNode.containerInfo),Gu(t),null;case 10:return Ti(t.type._context),Gu(t),null;case 19:if(ko(ea),null===(a=t.memoizedState))return Gu(t),null;if(r=!!(128&t.flags),null===(s=a.rendering))if(r)$u(a,!1);else{if(0!==Ds||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,$u(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>qs&&(t.flags|=128,r=!0,$u(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$u(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return Gu(t),null}else 2*Xe()-a.renderingStartTime>qs&&1073741824!==n&&(t.flags|=128,r=!0,$u(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,Po(ea,r?1&n|2:1&n),t):(Gu(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&js)&&(Gu(t),6&t.subtreeFlags&&(t.flags|=8192)):Gu(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Wu(e,t){switch(ni(t),t.tag){case 1:return Lo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),ko(Io),ko(Co),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Xi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}Nu=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ju=function(){},Lu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qi(Gi.current);var i,a=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),a=[];break;case"select":o=A({},o,{value:void 0}),r=A({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(u.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(u.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Vr("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Du=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qu=!1,Ku=!1,Xu="function"==typeof WeakSet?WeakSet:Set,Ju=null;function Zu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xl(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){xl(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[yo],delete t[vo],delete t[go]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ls(e,t,n),e=e.sibling;null!==e;)ls(e,t,n),e=e.sibling}var cs=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)ds(e,t,n),n=n.sibling}function ds(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ku||Zu(n,t);case 6:var r=cs,o=fs;cs=null,ps(e,t,n),fs=o,null!==(cs=r)&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),qt(e)):so(cs,n.stateNode));break;case 4:r=cs,o=fs,cs=n.stateNode.containerInfo,fs=!0,ps(e,t,n),cs=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Ku&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&es(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Ku&&(Zu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xl(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Ku=(r=Ku)||null!==n.memoizedState,ps(e,t,n),Ku=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xu),t.forEach((function(t){var r=Tl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,u=t,s=u;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,fs=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===cs)throw Error(i(160));ds(a,u,o),cs=null,fs=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){xl(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ys(t,e),t=t.sibling}function ys(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){xl(e,e.return,t)}try{ns(5,e,e.return)}catch(t){xl(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&r&&null!==n&&Zu(n,n.return);break;case 5:if(ms(t,e),vs(e),512&r&&null!==n&&Zu(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){xl(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,u=null!==n?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&X(o,a),be(s,u);var c=be(s,a);for(u=0;u<l.length;u+=2){var f=l[u],p=l[u+1];"style"===f?ye(o,p):"dangerouslySetInnerHTML"===f?fe(o,p):"children"===f?pe(o,p):b(o,f,p,c)}switch(s){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):d!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){xl(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){xl(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(t){xl(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Us=Xe())),4&r&&hs(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ku=(c=Ku)||f,ms(t,e),Ku=c):ms(t,e),vs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Ju=e,f=e.child;null!==f;){for(p=Ju=f;null!==Ju;){switch(h=(d=Ju).child,d.tag){case 0:case 11:case 14:case 15:ns(4,d,d.return);break;case 1:Zu(d,d.return);var m=d.stateNode;if("function"==typeof m.componentWillUnmount){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xl(r,n,e)}}break;case 5:Zu(d,d.return);break;case 22:if(null!==d.memoizedState){_s(p);continue}}null!==h?(h.return=d,Ju=h):_s(p)}f=f.sibling}e:for(f=null,p=e;;){if(5===p.tag){if(null===f){f=p;try{o=p.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=p.stateNode,u=null!=(l=p.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=me("display",u))}catch(t){xl(e,e.return,t)}}}else if(6===p.tag){if(null===f)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){xl(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ms(t,e),vs(e),4&r&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),ls(e,us(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ss(e,us(e),a);break;default:throw Error(i(161))}}catch(t){xl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gs(e,t,n){Ju=e,bs(e,t,n)}function bs(e,t,n){for(var r=!!(1&e.mode);null!==Ju;){var o=Ju,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qu;if(!a){var u=o.alternate,s=null!==u&&null!==u.memoizedState||Ku;u=Qu;var l=Ku;if(Qu=a,(Ku=s)&&!l)for(Ju=o;null!==Ju;)s=(a=Ju).child,22===a.tag&&null!==a.memoizedState?Es(o):null!==s?(s.return=a,Ju=s):Es(o);for(;null!==i;)Ju=i,bs(i,t,n),i=i.sibling;Ju=o,Qu=u,Ku=l}ws(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Ju=i):ws(e)}}function ws(e){for(;null!==Ju;){var t=Ju;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ku||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ku)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nu(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bi(t,a,r);break;case 3:var u=t.updateQueue;if(null!==u){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bi(t,u,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var p=f.dehydrated;null!==p&&qt(p)}}}break;default:throw Error(i(163))}Ku||512&t.flags&&os(t)}catch(e){xl(t,t.return,e)}}if(t===e){Ju=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ju=n;break}Ju=t.return}}function _s(e){for(;null!==Ju;){var t=Ju;if(t===e){Ju=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ju=n;break}Ju=t.return}}function Es(e){for(;null!==Ju;){var t=Ju;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){xl(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){xl(t,o,e)}}var i=t.return;try{os(t)}catch(e){xl(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){xl(t,a,e)}}}catch(e){xl(t,t.return,e)}if(t===e){Ju=null;break}var u=t.sibling;if(null!==u){u.return=t.return,Ju=u;break}Ju=t.return}}var Ss,xs=Math.ceil,Os=w.ReactCurrentDispatcher,ks=w.ReactCurrentOwner,Ps=w.ReactCurrentBatchConfig,Ts=0,Cs=null,Is=null,Ns=0,js=0,Ls=Oo(0),Ds=0,Rs=null,Fs=0,As=0,Ms=0,Vs=null,zs=null,Us=0,qs=1/0,Hs=null,Bs=!1,$s=null,Gs=null,Ys=!1,Ws=null,Qs=0,Ks=0,Xs=null,Js=-1,Zs=0;function el(){return 6&Ts?Xe():-1!==Js?Js:Js=Xe()}function tl(e){return 1&e.mode?2&Ts&&0!==Ns?Ns&-Ns:null!==yi.transition?(0===Zs&&(Zs=mt()),Zs):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function nl(e,t,n,r){if(50<Ks)throw Ks=0,Xs=null,Error(i(185));vt(e,n,r),2&Ts&&e===Cs||(e===Cs&&(!(2&Ts)&&(As|=n),4===Ds&&ul(e,Ns)),rl(e,r),1===n&&0===Ts&&!(1&t.mode)&&(qs=Xe()+500,zo&&Ho()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),u=1<<a,s=o[a];-1===s?u&n&&!(u&r)||(o[a]=dt(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}(e,t);var r=pt(e,e===Cs?Ns:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){zo=!0,qo(e)}(sl.bind(null,e)):qo(sl.bind(null,e)),ao((function(){!(6&Ts)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Cl(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Js=-1,Zs=0,6&Ts)throw Error(i(327));var n=e.callbackNode;if(El()&&e.callbackNode!==n)return null;var r=pt(e,e===Cs?Ns:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=yl(e,r);else{t=r;var o=Ts;Ts|=2;var a=hl();for(Cs===e&&Ns===t||(Hs=null,qs=Xe()+500,pl(e,t));;)try{gl();break}catch(t){dl(e,t)}Pi(),Os.current=a,Ts=o,null!==Is?t=0:(Cs=null,Ns=0,t=Ds)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=il(e,o)),1===t)throw n=Rs,pl(e,0),ul(e,r),rl(e,Xe()),n;if(6===t)ul(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ur(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=yl(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=il(e,a))),1!==t)))throw n=Rs,pl(e,0),ul(e,r),rl(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:_l(e,zs,Hs);break;case 3:if(ul(e,r),(130023424&r)===r&&10<(t=Us+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(_l.bind(null,e,zs,Hs),t);break}_l(e,zs,Hs);break;case 4:if(ul(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-at(r);a=1<<u,(u=t[u])>o&&(o=u),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xs(r/1960))-r)){e.timeoutHandle=ro(_l.bind(null,e,zs,Hs),r);break}_l(e,zs,Hs);break;default:throw Error(i(329))}}}return rl(e,Xe()),e.callbackNode===n?ol.bind(null,e):null}function il(e,t){var n=Vs;return e.current.memoizedState.isDehydrated&&(pl(e,t).flags|=256),2!==(e=yl(e,t))&&(t=zs,zs=n,null!==t&&al(t)),e}function al(e){null===zs?zs=e:zs.push.apply(zs,e)}function ul(e,t){for(t&=~Ms,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sl(e){if(6&Ts)throw Error(i(327));El();var t=pt(e,0);if(!(1&t))return rl(e,Xe()),null;var n=yl(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=il(e,r))}if(1===n)throw n=Rs,pl(e,0),ul(e,t),rl(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,zs,Hs),rl(e,Xe()),null}function ll(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(qs=Xe()+500,zo&&Ho())}}function cl(e){null!==Ws&&0===Ws.tag&&!(6&Ts)&&El();var t=Ts;Ts|=1;var n=Ps.transition,r=bt;try{if(Ps.transition=null,bt=1,e)return e()}finally{bt=r,Ps.transition=n,!(6&(Ts=t))&&Ho()}}function fl(){js=Ls.current,ko(Ls)}function pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Xi(),ko(Io),ko(Co),ra();break;case 5:Zi(r);break;case 4:Xi();break;case 13:case 19:ko(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Cs=e,Is=e=Ll(e.current,null),Ns=js=t,Ds=0,Rs=null,Ms=As=Fs=0,zs=Vs=null,null!==ji){for(t=0;t<ji.length;t++)if(null!==(r=(n=ji[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}ji=null}return e}function dl(e,t){for(;;){var n=Is;try{if(Pi(),oa.current=Ja,ca){for(var r=ua.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,la=sa=ua=null,fa=!1,pa=0,ks.current=null,null===n||null===n.return){Ds=1,Rs=t,Is=null;break}e:{var a=e,u=n.return,s=n,l=t;if(t=Ns,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,f=s,p=f.tag;if(!(1&f.mode||0!==p&&11!==p&&15!==p)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=yu(u);if(null!==h){h.flags&=-257,vu(h,u,s,0,t),1&h.mode&&mu(a,c,t),l=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(!(1&t)){mu(a,c,t),ml();break e}l=Error(i(426))}else if(ii&&1&s.mode){var v=yu(u);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vu(v,u,s,0,t),mi(lu(l,s));break e}}a=l=lu(l,s),4!==Ds&&(Ds=2),null===Vs?Vs=[a]:Vs.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,du(0,l,t));break e;case 1:s=l;var g=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gs&&Gs.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,hu(a,s,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(e){t=e,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function hl(){var e=Os.current;return Os.current=Ja,null===e?Ja:e}function ml(){0!==Ds&&3!==Ds&&2!==Ds||(Ds=4),null===Cs||!(268435455&Fs)&&!(268435455&As)||ul(Cs,Ns)}function yl(e,t){var n=Ts;Ts|=2;var r=hl();for(Cs===e&&Ns===t||(Hs=null,pl(e,t));;)try{vl();break}catch(t){dl(e,t)}if(Pi(),Ts=n,Os.current=r,null!==Is)throw Error(i(261));return Cs=null,Ns=0,Ds}function vl(){for(;null!==Is;)bl(Is)}function gl(){for(;null!==Is&&!Qe();)bl(Is)}function bl(e){var t=Ss(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?wl(e):Is=t,ks.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Wu(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return Ds=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yu(n,t,js)))return void(Is=n);if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ds&&(Ds=5)}function _l(e,t,n){var r=bt,o=Ps.transition;try{Ps.transition=null,bt=1,function(e,t,n,r){do{El()}while(null!==Ws);if(6&Ts)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Cs&&(Is=Cs=null,Ns=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ys||(Ys=!0,Cl(tt,(function(){return El(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ps.transition,Ps.transition=null;var u=bt;bt=1;var s=Ts;Ts|=4,ks.current=null,function(e,t){if(eo=Bt,dr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var u=0,s=-1,l=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(s=u+o),p!==a||0!==r&&3!==p.nodeType||(l=u+r),3===p.nodeType&&(u+=p.nodeValue.length),null!==(h=p.firstChild);)d=p,p=h;for(;;){if(p===e)break t;if(d===n&&++c===o&&(s=u),d===a&&++f===r&&(l=u),null!==(h=p.nextSibling))break;d=(p=d).parentNode}p=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Bt=!1,Ju=t;null!==Ju;)if(e=(t=Ju).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ju=e;else for(;null!==Ju;){t=Ju;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:nu(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){xl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ju=e;break}Ju=t.return}m=ts,ts=!1}(e,n),ys(n,e),hr(to),Bt=!!eo,to=eo=null,e.current=n,gs(n,e,o),Ke(),Ts=s,bt=u,Ps.transition=a}else e.current=n;if(Ys&&(Ys=!1,Ws=e,Qs=o),0===(a=e.pendingLanes)&&(Gs=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rl(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Bs)throw Bs=!1,e=$s,$s=null,e;!!(1&Qs)&&0!==e.tag&&El(),1&(a=e.pendingLanes)?e===Xs?Ks++:(Ks=0,Xs=e):Ks=0,Ho()}(e,t,n,r)}finally{Ps.transition=o,bt=r}return null}function El(){if(null!==Ws){var e=wt(Qs),t=Ps.transition,n=bt;try{if(Ps.transition=null,bt=16>e?16:e,null===Ws)var r=!1;else{if(e=Ws,Ws=null,Qs=0,6&Ts)throw Error(i(331));var o=Ts;for(Ts|=4,Ju=e.current;null!==Ju;){var a=Ju,u=a.child;if(16&Ju.flags){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Ju=c;null!==Ju;){var f=Ju;switch(f.tag){case 0:case 11:case 15:ns(8,f,a)}var p=f.child;if(null!==p)p.return=f,Ju=p;else for(;null!==Ju;){var d=(f=Ju).sibling,h=f.return;if(is(f),f===c){Ju=null;break}if(null!==d){d.return=h,Ju=d;break}Ju=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Ju=a}}if(2064&a.subtreeFlags&&null!==u)u.return=a,Ju=u;else e:for(;null!==Ju;){if(2048&(a=Ju).flags)switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Ju=g;break e}Ju=a.return}}var b=e.current;for(Ju=b;null!==Ju;){var w=(u=Ju).child;if(2064&u.subtreeFlags&&null!==w)w.return=u,Ju=w;else e:for(u=b;null!==Ju;){if(2048&(s=Ju).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){xl(s,s.return,e)}if(s===u){Ju=null;break e}var _=s.sibling;if(null!==_){_.return=s.return,Ju=_;break e}Ju=s.return}}if(Ts=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Ps.transition=t}}return!1}function Sl(e,t,n){e=zi(e,t=du(0,t=lu(n,t),1),1),t=el(),null!==e&&(vt(e,1,t),rl(e,t))}function xl(e,t,n){if(3===e.tag)Sl(e,e,n);else for(;null!==t;){if(3===t.tag){Sl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=zi(t,e=hu(t,e=lu(n,e),1),1),e=el(),null!==t&&(vt(t,1,e),rl(t,e));break}}t=t.return}}function Ol(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ns&n)===n&&(4===Ds||3===Ds&&(130023424&Ns)===Ns&&500>Xe()-Us?pl(e,0):Ms|=n),rl(e,t)}function kl(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=el();null!==(e=Ri(e,t))&&(vt(e,t,n),rl(e,n))}function Pl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kl(e,n)}function Tl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),kl(e,n)}function Cl(e,t){return Ye(e,t)}function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nl(e,t,n,r){return new Il(e,t,n,r)}function jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;return null===n?((n=Nl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dl(e,t,n,r,o,a){var u=2;if(r=e,"function"==typeof e)jl(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case S:return Rl(n.children,o,a,t);case x:u=8,o|=8;break;case O:return(e=Nl(12,n,t,2|o)).elementType=O,e.lanes=a,e;case C:return(e=Nl(13,n,t,o)).elementType=C,e.lanes=a,e;case I:return(e=Nl(19,n,t,o)).elementType=I,e.lanes=a,e;case L:return Fl(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:u=10;break e;case P:u=9;break e;case T:u=11;break e;case N:u=14;break e;case j:u=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nl(u,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Rl(e,t,n,r){return(e=Nl(7,e,r,t)).lanes=n,e}function Fl(e,t,n,r){return(e=Nl(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Al(e,t,n){return(e=Nl(6,e,null,t)).lanes=n,e}function Ml(e,t,n){return(t=Nl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,o,i,a,u,s){return e=new Vl(e,t,n,u,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nl(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ai(i),e}function Ul(e){if(!e)return To;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Fo(e,n,t)}return t}function ql(e,t,n,r,o,i,a,u,s){return(e=zl(n,r,!0,e,0,i,0,u,s)).context=Ul(null),n=e.current,(i=Vi(r=el(),o=tl(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,vt(e,o,r),rl(e,r),e}function Hl(e,t,n,r){var o=t.current,i=el(),a=tl(o);return n=Ul(n),null===t.context?t.context=n:t.pendingContext=n,(t=Vi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(nl(e,o,a,i),Ui(e,o,a)),a}function Bl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gl(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)bu=!0;else{if(!(e.lanes&n||128&t.flags))return bu=!1,function(e,t,n){switch(t.tag){case 3:Cu(t),hi();break;case 5:Ji(t);break;case 1:Lo(t.type)&&Ao(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(Si,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?Au(e,t,n):(Po(ea,1&ea.current),null!==(e=Bu(e,t,n))?e.sibling:null);Po(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,xu(e,t,n)}return Bu(e,t,n)}(e,t,n);bu=!!(131072&e.flags)}else bu=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hu(e,t),e=t.pendingProps;var o=jo(t,Co.current);Ii(t,n),o=ya(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(r)?(a=!0,Ao(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ai(t),o.updater=ou,t.stateNode=o,o._reactInternals=t,su(t,r,e,n),t=Tu(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wu(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return jl(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===N)return 14}return 2}(r),e=nu(r,e),o){case 0:t=ku(null,t,r,e,n);break e;case 1:t=Pu(null,t,r,e,n);break e;case 11:t=_u(null,t,r,e,n);break e;case 14:t=Eu(null,t,r,nu(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,ku(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 1:return r=t.type,o=t.pendingProps,Pu(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 3:e:{if(Cu(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Mi(e,t),Hi(t,r,null,n);var u=t.memoizedState;if(r=u.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Iu(e,t,r,n,o=lu(Error(i(423)),t));break e}if(r!==o){t=Iu(e,t,r,n,o=lu(Error(i(424)),t));break e}for(oi=lo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ei(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Bu(e,t,n);break e}wu(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,no(r,o)?u=null:null!==a&&no(r,a)&&(t.flags|=32),Ou(e,t),wu(e,t,u,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Au(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):wu(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,_u(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 7:return wu(e,t,t.pendingProps,n),t.child;case 8:case 12:return wu(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,u=o.value,Po(Si,r._currentValue),r._currentValue=u,null!==a)if(ur(a.value,u)){if(a.children===o.children&&!Io.current){t=Bu(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){u=a.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Vi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ci(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===a.tag)u=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(i(341));u.lanes|=n,null!==(s=u.alternate)&&(s.lanes|=n),Ci(u,n,t),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===t){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}wu(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ii(t,n),r=r(o=Ni(o)),t.flags|=1,wu(e,t,r,n),t.child;case 14:return o=nu(r=t.type,t.pendingProps),Eu(e,t,r,o=nu(r.type,o),n);case 15:return Su(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nu(r,o),Hu(e,t),t.tag=1,Lo(r)?(e=!0,Ao(t)):e=!1,Ii(t,n),au(t,r,o),su(t,r,o,n),Tu(null,t,r,!0,e,n);case 19:return qu(e,t,n);case 22:return xu(e,t,n)}throw Error(i(156,t.tag))};var Yl="function"==typeof reportError?reportError:function(e){console.error(e)};function Wl(e){this._internalRoot=e}function Ql(e){this._internalRoot=e}function Kl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function Zl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var u=o;o=function(){var e=Bl(a);u.call(e)}}Hl(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Bl(a);i.call(e)}}var a=ql(t,r,e,0,null,!1,0,"",Jl);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),cl(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var u=r;r=function(){var e=Bl(s);u.call(e)}}var s=zl(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=s,e[mo]=s.current,qr(8===e.nodeType?e.parentNode:e),cl((function(){Hl(t,s,n,r)})),s}(n,t,e,o,r);return Bl(a)}Ql.prototype.render=Wl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hl(e,t,null,null)},Ql.prototype.unmount=Wl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){Hl(null,e,null,null)})),t[mo]=null}},Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&At(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),rl(t,Xe()),!(6&Ts)&&(qs=Xe()+500,Ho()))}break;case 13:cl((function(){var t=Ri(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),Gl(e,1)}},Et=function(e){if(13===e.tag){var t=Ri(e,134217728);null!==t&&nl(t,e,134217728,el()),Gl(e,134217728)}},St=function(e){if(13===e.tag){var t=tl(e),n=Ri(e,t);null!==n&&nl(n,e,t,el()),Gl(e,t)}},xt=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ee=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Eo(r);if(!o)throw Error(i(90));Y(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=ll,Ce=cl;var ec={usingClientEntryPoint:!1,Events:[wo,_o,Eo,ke,Pe,ll]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kl(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kl(e))throw Error(i(299));var n=!1,r="",o=Yl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zl(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Wl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return cl(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(i(200));return Zl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kl(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",u=Yl;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(u=n.onRecoverableError)),t=ql(t,null,e,1,null!=n?n:null,o,0,a,u),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ql(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(i(200));return Zl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(i(40));return!!e._reactRootContainer&&(cl((function(){Zl(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zl(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case y:case m:case s:return e;default:return t}}case o:return t}}}function E(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||_(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:c,props:i,_owner:u.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var o,i={},a=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!x.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:u,props:i,_owner:S.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+T(s,0):i,_(a)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),C(a,t,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",_(e))for(var l=0;l<e.length;l++){var c=i+T(u=e[l],l);s+=C(u,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(u=e.next()).done;)s+=C(u=u.value,t,o,c=i+T(u,l++),a);else if("object"===u)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},L={transition:null},D={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:L,ReactCurrentOwner:S};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)E.call(t,l)&&!x.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:u}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return j.current.useCallback(e,t)},t.useContext=function(e){return j.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return j.current.useDeferredValue(e)},t.useEffect=function(e,t){return j.current.useEffect(e,t)},t.useId=function(){return j.current.useId()},t.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.current.useMemo(e,t)},t.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},t.useRef=function(e){return j.current.useRef(e)},t.useState=function(e){return j.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.current.useTransition()},t.version="18.3.1"},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var u=2*(r+1)-1,s=e[u],l=u+1,c=e[l];if(0>i(s,n))l<o&&0>i(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[u]=n,r=u);else{if(!(l<o&&0>i(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var l=[],c=[],f=1,p=null,d=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function _(e){if(y=!1,w(e),!m)if(null!==r(l))m=!0,L(E);else{var t=r(c);null!==t&&D(_,t.startTime-e)}}function E(e,n){m=!1,y&&(y=!1,g(k),k=-1),h=!0;var i=d;try{for(w(n),p=r(l);null!==p&&(!(p.expirationTime>n)||e&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var u=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?p.callback=u:p===r(l)&&o(l),w(n)}else o(l);p=r(l)}if(null!==p)var s=!0;else{var f=r(c);null!==f&&D(_,f.startTime-n),s=!1}return s}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,x=!1,O=null,k=-1,P=5,T=-1;function C(){return!(t.unstable_now()-T<P)}function I(){if(null!==O){var e=t.unstable_now();T=e;var n=!0;try{n=O(!0,e)}finally{n?S():(x=!1,O=null)}}else x=!1}if("function"==typeof b)S=function(){b(I)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,j=N.port2;N.port1.onmessage=I,S=function(){j.postMessage(null)}}else S=function(){v(I,0)};function L(e){O=e,x||(x=!0,S())}function D(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(l)&&e===r(c)&&(y?(g(k),k=-1):y=!0,D(_,i-a))):(e.sortIndex=u,n(l,e),m||h||(m=!0,L(E))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},7983:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,o={}){if(o=Object.assign({},r,o),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==o.skipLike&&o.skipLike.test(i))return e;if(o.hex&&t.test(i))return Number.parseInt(i,16);{const t=n.exec(i);if(t){const n=t[1],r=t[2];let u=(a=t[3])&&-1!==a.indexOf(".")?("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1)),a):a;const s=t[4]||t[6];if(!o.leadingZeros&&r.length>0&&n&&"."!==i[2])return e;if(!o.leadingZeros&&r.length>0&&!n&&"."!==i[1])return e;{const t=Number(i),a=""+t;return-1!==a.search(/[eE]/)||s?o.eNotation?t:e:-1!==i.indexOf(".")?"0"===a&&""===u||a===u||n&&a==="-"+u?t:e:r?u===a||n+u===a?t:e:i===a||i===n+a?t:e}}return e}var a}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=o(4848),t=o(7414),n=o.n(t);function r(e){return function(t,n){return n.mode===e}}var i=r("onBoot"),a=r("renderPage"),u=r("renderConfigScreen"),s=r("renderModal"),l=r("renderItemFormSidebarPanel"),c=r("renderItemFormSidebar"),f=r("renderItemFormOutlet"),p=r("renderFieldExtension"),d=r("renderManualFieldExtensionConfigScreen"),h=r("renderAssetSource"),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)},y=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function v(e){return function(t,n){if(!e)return{};for(var r={},o=0,i=t;o<i.length;o++){var a=i[o],u=n.itemTypes[a.relationships.item_type.data.id];r[a.id]=e(a,m(m({},n),{itemType:u}))}return r}}var g=function(e){var t=null,n=function(n){var r=void 0===n?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,function(){for(var e=document.querySelectorAll("body *"),t=0,n=0;n<e.length;n++)t=Math.max(e[n].getBoundingClientRect().bottom,t);return t}()):n;r!==t&&(e.setHeight(r),t=r)},r=null,o=null,i=function(){return n()};return{updateHeight:n,startAutoResizer:function(){n(),r||(r=new ResizeObserver(i)).observe(document.documentElement),o||(o=new MutationObserver(i)).observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},stopAutoResizer:function(){r&&(r.disconnect(),r=null),o&&(o.disconnect(),o=null)}}},b=o(6540),w=o.t(b,2),_=o(6942),E=o.n(_),S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)};function x(e){return e===e.toLowerCase()?e:e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}function O(e,t){return void 0===t&&(t=!1),S({padding:t?void 0:e.bodyPadding.map((function(e){return"".concat(e,"px")})).join(" ")},Object.fromEntries(Object.entries(e.theme).flatMap((function(e){var t,n=e[0],r=e[1];return[["--".concat(x(n)),r],["--".concat(x("".concat(n,"RgbComponents"))),(null===(t=r.match(/rgb\((\d+, \d+, \d+)\)/))||void 0===t?void 0:t[1])||void 0]]}))))}const k=JSON.parse('{"v":"_themeVariables_ovgoa_1","J":"_canvas_ovgoa_68"}');var P=(0,b.createContext)(null);function T(e){var t=e.ctx,n=e.children,r=e.noAutoResizer,o=t.mode;return(0,b.useEffect)((function(){if(!["renderPage","renderItemFormSidebar"].includes(o)&&!r){var e=t;return e.startAutoResizer(),function(){e.stopAutoResizer()}}}),[o,r]),b.createElement(P.Provider,{value:t},b.createElement("div",{className:E()(k.v,k.J),style:O(t)},n))}const C=JSON.parse('{"Form":"_Form_5qspp_1","Form__item":"_Form__item_5qspp_5","Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"}');var I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)},N=function(e){var t=e.children,n=e.className,r=e.onSubmit,o=e.spacing,i=void 0===o?"default":o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","onSubmit","spacing"]),u=E()(C.Form,n),s=E()(C.Form__item,C["Form__item--".concat(i)]),l=(0,b.useCallback)((function(e){e.preventDefault(),r&&r(e)}),[r]);return b.createElement("form",I({className:u,onSubmit:l},a),b.Children.map(t,(function(e){return e?b.createElement("div",{className:s},e):null})))};const j=JSON.parse('{"M":"_FieldGroup_uz9ju_1","d":"_FieldGroup__item_uz9ju_5"}');var L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},L.apply(this,arguments)},D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function R(e){var t=e.children,n=e.className,r=D(e,["children","className"]),o=E()(j.M,n);return b.createElement("div",L({},r,{className:o}),b.Children.map(t,(function(e){return b.createElement("div",{className:j.d},e)})))}const F=JSON.parse('{"zw":"_formLabel_tcjrv_1","w9":"_formLabel__code_tcjrv_8","bL":"_formLabel--error_tcjrv_14","Hn":"_formLabel__label_tcjrv_18","aK":"_formLabel__required_tcjrv_30"}');var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A.apply(this,arguments)},M=function(e){var t,n=e.children,r=e.className,o=e.htmlFor,i=e.code,a=e.required,u=void 0!==a&&a,s=e.error,l=void 0!==s&&s,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","htmlFor","code","required","error"]),f=E()(F.zw,r,((t={})[F.bL]=l,t));return b.createElement("label",A({className:f,htmlFor:o},c),b.createElement("span",{className:F.Hn},n,u&&b.createElement("span",{className:F.aK},"*")),i&&b.createElement("span",{className:F.w9},i))};const V=JSON.parse('{"$":"_fieldError_qi0xk_1"}');function z(e){var t=e.children;return b.createElement("div",{className:V.$},t)}const U=JSON.parse('{"s":"_fieldHint_1avon_1"}');function q(e){var t=e.children;return b.createElement("div",{className:U.s},t)}var H=function(){return H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},H.apply(this,arguments)};function B(e){var t=e.id,n=e.label,r=e.hint,o=e.error,i=e.required,a=e.formLabelProps,u=e.children;return b.createElement(b.Fragment,null,b.createElement(M,H({},a,{htmlFor:t,required:i,error:!!o}),n),u,o&&b.createElement(z,null,o),r&&b.createElement(q,null,r))}function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function G(e){var t=function(e){if("object"!=$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(t)?t:t+""}function Y(e,t,n){return(t=G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||X(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ee=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(null,arguments)}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G(r.key),r)}}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ie=function(){return!!e})()}function ae(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ue=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),se=Math.abs,le=String.fromCharCode,ce=Object.assign;function fe(e){return e.trim()}function pe(e,t,n){return e.replace(t,n)}function de(e,t){return e.indexOf(t)}function he(e,t){return 0|e.charCodeAt(t)}function me(e,t,n){return e.slice(t,n)}function ye(e){return e.length}function ve(e){return e.length}function ge(e,t){return t.push(e),e}var be=1,we=1,_e=0,Ee=0,Se=0,xe="";function Oe(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:be,column:we,length:a,return:""}}function ke(e,t){return ce(Oe("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pe(){return Se=Ee>0?he(xe,--Ee):0,we--,10===Se&&(we=1,be--),Se}function Te(){return Se=Ee<_e?he(xe,Ee++):0,we++,10===Se&&(we=1,be++),Se}function Ce(){return he(xe,Ee)}function Ie(){return Ee}function Ne(e,t){return me(xe,e,t)}function je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Le(e){return be=we=1,_e=ye(xe=e),Ee=0,[]}function De(e){return xe="",e}function Re(e){return fe(Ne(Ee-1,Me(91===e?e+2:40===e?e+1:e)))}function Fe(e){for(;(Se=Ce())&&Se<33;)Te();return je(e)>2||je(Se)>3?"":" "}function Ae(e,t){for(;--t&&Te()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Ne(e,Ie()+(t<6&&32==Ce()&&32==Te()))}function Me(e){for(;Te();)switch(Se){case e:return Ee;case 34:case 39:34!==e&&39!==e&&Me(Se);break;case 40:41===e&&Me(e);break;case 92:Te()}return Ee}function Ve(e,t){for(;Te()&&e+Se!==57&&(e+Se!==84||47!==Ce()););return"/*"+Ne(t,Ee-1)+"*"+le(47===e?e:Te())}function ze(e){for(;!je(Ce());)Te();return Ne(e,Ee)}var Ue="-ms-",qe="-moz-",He="-webkit-",Be="comm",$e="rule",Ge="decl",Ye="@keyframes";function We(e,t){for(var n="",r=ve(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Qe(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ge:return e.return=e.return||e.value;case Be:return"";case Ye:return e.return=e.value+"{"+We(e.children,r)+"}";case $e:e.value=e.props.join(",")}return ye(n=We(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ke(e){return De(Xe("",null,null,null,[""],e=Le(e),0,[0],e))}function Xe(e,t,n,r,o,i,a,u,s){for(var l=0,c=0,f=a,p=0,d=0,h=0,m=1,y=1,v=1,g=0,b="",w=o,_=i,E=r,S=b;y;)switch(h=g,g=Te()){case 40:if(108!=h&&58==he(S,f-1)){-1!=de(S+=pe(Re(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Re(g);break;case 9:case 10:case 13:case 32:S+=Fe(h);break;case 92:S+=Ae(Ie()-1,7);continue;case 47:switch(Ce()){case 42:case 47:ge(Ze(Ve(Te(),Ie()),t,n),s);break;default:S+="/"}break;case 123*m:u[l++]=ye(S)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+c:-1==v&&(S=pe(S,/\f/g,"")),d>0&&ye(S)-f&&ge(d>32?et(S+";",r,n,f-1):et(pe(S," ","")+";",r,n,f-2),s);break;case 59:S+=";";default:if(ge(E=Je(S,t,n,l,c,o,u,b,w=[],_=[],f),i),123===g)if(0===c)Xe(S,t,E,E,w,i,f,u,_);else switch(99===p&&110===he(S,3)?100:p){case 100:case 108:case 109:case 115:Xe(e,E,E,r&&ge(Je(e,E,E,0,0,o,u,b,o,w=[],f),_),o,_,f,u,r?w:_);break;default:Xe(S,E,E,E,[""],_,0,u,_)}}l=c=d=0,m=v=1,b=S="",f=a;break;case 58:f=1+ye(S),d=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Pe())continue;switch(S+=le(g),g*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:u[l++]=(ye(S)-1)*v,v=1;break;case 64:45===Ce()&&(S+=Re(Te())),p=Ce(),c=f=ye(b=S+=ze(Ie())),g++;break;case 45:45===h&&2==ye(S)&&(m=0)}}return i}function Je(e,t,n,r,o,i,a,u,s,l,c){for(var f=o-1,p=0===o?i:[""],d=ve(p),h=0,m=0,y=0;h<r;++h)for(var v=0,g=me(e,f+1,f=se(m=a[h])),b=e;v<d;++v)(b=fe(m>0?p[v]+" "+g:pe(g,/&\f/g,p[v])))&&(s[y++]=b);return Oe(e,t,n,0===o?$e:u,s,l,c)}function Ze(e,t,n){return Oe(e,t,n,Be,le(Se),me(e,2,-2),0)}function et(e,t,n,r){return Oe(e,t,n,Ge,me(e,0,r),me(e,r+1,-1),r)}var tt=function(e,t,n){for(var r=0,o=0;r=o,o=Ce(),38===r&&12===o&&(t[n]=1),!je(o);)Te();return Ne(e,Ee)},nt=new WeakMap,rt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nt.get(n))&&!r){nt.set(e,!0);for(var o=[],i=function(e,t){return De(function(e,t){var n=-1,r=44;do{switch(je(r)){case 0:38===r&&12===Ce()&&(t[n]=1),e[n]+=tt(Ee-1,t,n);break;case 2:e[n]+=Re(r);break;case 4:if(44===r){e[++n]=58===Ce()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=le(r)}}while(r=Te());return e}(Le(e),t))}(t,o),a=n.props,u=0,s=0;u<i.length;u++)for(var l=0;l<a.length;l++,s++)e.props[s]=o[u]?i[u].replace(/&\f/g,a[l]):a[l]+" "+i[u]}}},ot=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function it(e,t){switch(function(e,t){return 45^he(e,0)?(((t<<2^he(e,0))<<2^he(e,1))<<2^he(e,2))<<2^he(e,3):0}(e,t)){case 5103:return He+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return He+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return He+e+qe+e+Ue+e+e;case 6828:case 4268:return He+e+Ue+e+e;case 6165:return He+e+Ue+"flex-"+e+e;case 5187:return He+e+pe(e,/(\w+).+(:[^]+)/,He+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return He+e+Ue+"flex-item-"+pe(e,/flex-|-self/,"")+e;case 4675:return He+e+Ue+"flex-line-pack"+pe(e,/align-content|flex-|-self/,"")+e;case 5548:return He+e+Ue+pe(e,"shrink","negative")+e;case 5292:return He+e+Ue+pe(e,"basis","preferred-size")+e;case 6060:return He+"box-"+pe(e,"-grow","")+He+e+Ue+pe(e,"grow","positive")+e;case 4554:return He+pe(e,/([^-])(transform)/g,"$1"+He+"$2")+e;case 6187:return pe(pe(pe(e,/(zoom-|grab)/,He+"$1"),/(image-set)/,He+"$1"),e,"")+e;case 5495:case 3959:return pe(e,/(image-set\([^]*)/,He+"$1$`$1");case 4968:return pe(pe(e,/(.+:)(flex-)?(.*)/,He+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+He+e+e;case 4095:case 3583:case 4068:case 2532:return pe(e,/(.+)-inline(.+)/,He+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ye(e)-1-t>6)switch(he(e,t+1)){case 109:if(45!==he(e,t+4))break;case 102:return pe(e,/(.+:)(.+)-([^]+)/,"$1"+He+"$2-$3$1"+qe+(108==he(e,t+3)?"$3":"$2-$3"))+e;case 115:return~de(e,"stretch")?it(pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==he(e,t+1))break;case 6444:switch(he(e,ye(e)-3-(~de(e,"!important")&&10))){case 107:return pe(e,":",":"+He)+e;case 101:return pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+He+(45===he(e,14)?"inline-":"")+"box$3$1"+He+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(he(e,t+11)){case 114:return He+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return He+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return He+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return He+e+Ue+e+e}return e}var at=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ge:e.return=it(e.value,e.length);break;case Ye:return We([ke(e,{value:pe(e.value,"@","@"+He)})],r);case $e:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return We([ke(e,{props:[pe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return We([ke(e,{props:[pe(t,/:(plac\w+)/,":"+He+"input-$1")]}),ke(e,{props:[pe(t,/:(plac\w+)/,":-moz-$1")]}),ke(e,{props:[pe(t,/:(plac\w+)/,Ue+"input-$1")]})],r)}return""}))}}],ut=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||at,a={},u=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;u.push(e)}));var s,l,c,f,p=[Qe,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],d=(l=[rt,ot].concat(i,p),c=ve(l),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,We(Ke(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ue({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(u),h},st=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},lt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ct(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ft=!1,pt=/[A-Z]|^ms/g,dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ht=function(e){return 45===e.charCodeAt(1)},mt=function(e){return null!=e&&"boolean"!=typeof e},yt=ct((function(e){return ht(e)?e:e.replace(pt,"-$&").toLowerCase()})),vt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dt,(function(e,t,n){return wt={name:t,styles:n,next:wt},t}))}return 1===lt[e]||ht(e)||"number"!=typeof t||0===t?t:t+"px"},gt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function bt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return wt={name:o.name,styles:o.styles,next:wt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)wt={name:a.name,styles:a.styles,next:wt},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=bt(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var u=a;null!=t&&void 0!==t[u]?r+=i+"{"+t[u]+"}":mt(u)&&(r+=yt(i)+":"+vt(i,u)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&ft)throw new Error(gt);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=bt(e,t,a);switch(i){case"animation":case"animationName":r+=yt(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)mt(a[l])&&(r+=yt(i)+":"+vt(i,a[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var u=wt,s=n(e);return wt=u,bt(e,t,s)}}var l=n;if(null==t)return l;var c=t[l];return void 0!==c?c:l}var wt,_t=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Et(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";wt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=bt(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=bt(n,t,e[a]),r&&(o+=i[a]);_t.lastIndex=0;for(var u,s="";null!==(u=_t.exec(o));)s+="-"+u[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:l,styles:o,next:wt}}var St=!!w.useInsertionEffect&&w.useInsertionEffect,xt=St||function(e){return e()},Ot=(St||b.useLayoutEffect,b.createContext("undefined"!=typeof HTMLElement?ut({key:"css"}):null)),kt=(Ot.Provider,function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)(Ot);return e(t,r,n)}))}),Pt=b.createContext({}),Tt={}.hasOwnProperty,Ct="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",It=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return st(t,n,r),xt((function(){return function(e,t,n){st(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Nt=kt((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ct],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var u=Et(i,void 0,b.useContext(Pt));a+=t.key+"-"+u.name;var s={};for(var l in e)Tt.call(e,l)&&"css"!==l&&l!==Ct&&(s[l]=e[l]);return s.className=a,n&&(s.ref=n),b.createElement(b.Fragment,null,b.createElement(It,{cache:t,serialized:u,isStringTag:"string"==typeof o}),b.createElement(o,s))})),jt=Nt,Lt=(o(4146),function(e,t){var n=arguments;if(null==t||!Tt.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=jt,o[1]=function(e,t){var n={};for(var r in t)Tt.call(t,r)&&(n[r]=t[r]);return n[Ct]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return b.createElement.apply(null,o)});function Dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Et(t)}var Rt=o(961);const Ft=Math.min,At=Math.max,Mt=Math.round,Vt=Math.floor,zt=e=>({x:e,y:e});function Ut(e){return Bt(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ht(e){var t;return null==(t=(Bt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Bt(e){return e instanceof Node||e instanceof qt(e).Node}function $t(e){return e instanceof Element||e instanceof qt(e).Element}function Gt(e){return e instanceof HTMLElement||e instanceof qt(e).HTMLElement}function Yt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot)}function Wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qt(e){return qt(e).getComputedStyle(e)}function Kt(e){const t=function(e){if("html"===Ut(e))return e;const t=e.assignedSlot||e.parentNode||Yt(e)&&e.host||Ht(e);return Yt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Ut(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&Wt(t)?t:Kt(t)}function Xt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Kt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=qt(o);return i?t.concat(a,a.visualViewport||[],Wt(o)?o:[],a.frameElement&&n?Xt(a.frameElement):[]):t.concat(o,Xt(o,[],n))}function Jt(e){return $t(e)?e:e.contextElement}function Zt(e){const t=Jt(e);if(!Gt(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=Mt(n)!==i||Mt(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}(t);let a=(i?Mt(n.width):n.width)/r,u=(i?Mt(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}const en=zt(0);function tn(e){const t=qt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function nn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Jt(e);let a=zt(1);t&&(r?$t(r)&&(a=Zt(r)):a=Zt(e));const u=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==qt(e))&&t}(i,n,r)?tn(i):zt(0);let s=(o.left+u.x)/a.x,l=(o.top+u.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i){const e=qt(i),t=r&&$t(r)?qt(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Zt(o),t=o.getBoundingClientRect(),r=Qt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,c*=e.x,f*=e.y,s+=i,l+=a,n=qt(o),o=n.frameElement}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:f,x:s,y:l})}const rn=b.useLayoutEffect;var on=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],an=function(){};function un(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function sn(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(un(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ln=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===$(e)&&null!==e?[e]:[];var t},cn=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Q({},Z(e,on))},fn=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function pn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function dn(e){return pn(e)?window.pageYOffset:e.scrollTop}function hn(e,t){pn(e)?window.scrollTo(0,t):e.scrollTop=t}function mn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:an,o=dn(e),i=t-o,a=0;!function t(){var u,s=i*((u=(u=a+=10)/n-1)*u*u+1)+o;hn(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function yn(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?hn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&hn(e,Math.max(t.offsetTop-o,0))}function vn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var gn=!1,bn={get passive(){return gn=!0}},wn="undefined"!=typeof window?window:{};wn.addEventListener&&wn.removeEventListener&&(wn.addEventListener("p",an,bn),wn.removeEventListener("p",an,!1));var _n=gn;function En(e){return null!=e}function Sn(e,t,n){return e?t:n}var xn=["children","innerProps"],On=["children","innerProps"];var kn,Pn,Tn,Cn=function(e){return"auto"===e?"bottom":e},In=(0,b.createContext)(null),Nn=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,u=e.theme,s=((0,b.useContext)(In)||{}).setPortalPlacement,l=(0,b.useRef)(null),c=J((0,b.useState)(r),2),f=c[0],p=c[1],d=J((0,b.useState)(null),2),h=d[0],m=d[1],y=u.spacing.controlHeight;return rn((function(){var e=l.current;if(e){var t="fixed"===i,u=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,f=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,h=p.height,m=p.top,y=n.offsetParent.getBoundingClientRect().top,v=a||pn(c=s)?window.innerHeight:c.clientHeight,g=dn(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=y-w,E=v-m,S=_+g,x=f-g-m,O=d-v+g+b,k=g+m-w,P=160;switch(o){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!a)return i&&mn(s,O,P),{placement:"bottom",maxHeight:t};if(!a&&x>=r||a&&E>=r)return i&&mn(s,O,P),{placement:"bottom",maxHeight:a?E-b:x-b};if("auto"===o||a){var T=t,C=a?_:S;return C>=r&&(T=Math.min(C-b-u,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return i&&hn(s,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&mn(s,k,P),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&_>=r){var I=t;return(!a&&S>=r||a&&_>=r)&&(I=a?_-w:S-w),i&&mn(s,k,P),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});p(u.maxHeight),m(u.placement),null==s||s(u.placement)}}),[r,o,i,a,n,s,y]),t({ref:l,placerProps:Q(Q({},e),{},{placement:h||Cn(o),maxHeight:f})})},jn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Q({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Ln=jn,Dn=jn,Rn=["size"],Fn=["innerProps","isRtl","size"],An={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Mn=function(e){var t=e.size,n=Z(e,Rn);return Lt("svg",te({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:An},n))},Vn=function(e){return Lt(Mn,te({size:20},e),Lt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},zn=function(e){return Lt(Mn,te({size:20},e),Lt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Un=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Q({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},qn=Un,Hn=Un,Bn=function(){var e=Dt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(kn||(Pn=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Tn||(Tn=Pn.slice(0)),kn=Object.freeze(Object.defineProperties(Pn,{raw:{value:Object.freeze(Tn)}})))),$n=function(e){var t=e.delay,n=e.offset;return Lt("span",{css:Dt({animation:"".concat(Bn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Gn=["data"],Yn=["innerRef","isDisabled","isHidden","inputClassName"],Wn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Qn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Q({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Wn)},Kn=function(e){return Q({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Wn)},Xn=function(e){var t=e.children,n=e.innerProps;return Lt("div",n,t)},Jn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({},fn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Lt(Vn,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Lt("div",te({ref:o},fn(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({},fn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Lt(zn,null))},DownChevron:zn,CrossIcon:Vn,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,u=e.innerProps,s=e.label,l=e.theme,c=e.selectProps;return Lt("div",te({},fn(e,"group",{group:!0}),u),Lt(i,te({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:o,cx:n}),s),Lt("div",null,t))},GroupHeading:function(e){var t=cn(e);t.data;var n=Z(t,Gn);return Lt("div",te({},fn(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({},fn(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Lt("span",te({},t,fn(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=cn(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,u=r.inputClassName,s=Z(r,Yn);return Lt("div",te({},fn(e,"input",{"input-container":!0}),{"data-value":n||""}),Lt("input",te({className:t({input:!0},u),ref:o,style:Kn(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Z(e,Fn);return Lt("div",te({},fn(Q(Q({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Lt($n,{delay:0,offset:n}),Lt($n,{delay:160,offset:!0}),Lt($n,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Lt("div",te({},fn(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Lt("div",te({},fn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,u=(0,b.useRef)(null),s=(0,b.useRef)(null),l=J((0,b.useState)(Cn(i)),2),c=l[0],f=l[1],p=(0,b.useMemo)((function(){return{setPortalPlacement:f}}),[]),d=J((0,b.useState)(null),2),h=d[0],m=d[1],y=(0,b.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[c]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,c,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);rn((function(){y()}),[y]);var v=(0,b.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&u.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=Jt(e),c=o||i?[...l?Xt(l):[],...Xt(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=l&&u?function(e,t){let n,r=null;const o=Ht(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),i();const{left:l,top:c,width:f,height:p}=e.getBoundingClientRect();if(u||t(),!f||!p)return;const d={rootMargin:-Vt(c)+"px "+-Vt(o.clientWidth-(l+f))+"px "+-Vt(o.clientHeight-(c+p))+"px "+-Vt(l)+"px",threshold:At(0,Ft(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...d,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,d)}r.observe(e)}(!0),i}(l,n):null;let p,d=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!s&&h.observe(l),h.observe(t));let m=s?nn(e):null;return s&&function t(){const r=nn(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(p)}}(r,u.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);rn((function(){v()}),[v]);var g=(0,b.useCallback)((function(e){u.current=e,v()}),[v]);if(!t&&"fixed"!==a||!h)return null;var w=Lt("div",te({ref:g},fn(Q(Q({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Lt(In.Provider,{value:p},t?(0,Rt.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Z(e,On);return Lt("div",te({},fn(Q(Q({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Z(e,xn);return Lt("div",te({},fn(Q(Q({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,u=e.selectProps,s=n.Container,l=n.Label,c=n.Remove;return Lt(s,{data:r,innerProps:Q(Q({},fn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},Lt(l,{data:r,innerProps:Q({},fn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),Lt(c,{data:r,innerProps:Q(Q({},fn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:Xn,MultiValueLabel:Xn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({role:"button"},n),t||Lt(Vn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Lt("div",te({},fn(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({},fn(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Lt("div",te({},fn(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Lt("div",te({},fn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Lt("div",te({},fn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Zn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function er(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Zn(r)&&Zn(o)))return!1;var r,o;return!0}for(var tr={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},nr=function(e){return Lt("span",te({css:tr},e))},rr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,u=e.isDisabled,s=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var f=u?" disabled":"",p="".concat(s?" selected":"").concat(f);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},or=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,u=e.selectProps,s=e.id,l=e.isAppleDevice,c=u.ariaLiveMessages,f=u.getOptionLabel,p=u.inputValue,d=u.isMulti,h=u.isOptionDisabled,m=u.isSearchable,y=u.menuIsOpen,v=u.options,g=u.screenReaderStatus,w=u.tabSelectsValue,_=u.isLoading,E=u["aria-label"],S=u["aria-live"],x=(0,b.useMemo)((function(){return Q(Q({},rr),c||{})}),[c]),O=(0,b.useMemo)((function(){var e="";if(t&&x.onChange){var n=t.option,r=t.options,o=t.removedValue,i=t.removedValues,u=t.value,s=o||n||function(e){return Array.isArray(e)?null:e}(u),l=s?f(s):"",c=r||i||void 0,p=c?c.map(f):[],d=Q({isDisabled:s&&h(s,a),label:l,labels:p},t);e=x.onChange(d)}return e}),[t,x,h,a,f]),k=(0,b.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&x.onFocus){var u={focused:t,label:f(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=x.onFocus(u)}return e}),[n,r,f,h,x,o,a,l]),P=(0,b.useMemo)((function(){var e="";if(y&&v.length&&!_&&x.onFilter){var t=g({count:o.length});e=x.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,y,x,v,g,_]),T="initial-input-focus"===(null==t?void 0:t.action),C=(0,b.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":y?"menu":"input";e=x.guidance({"aria-label":E,context:t,isDisabled:n&&h(n,a),isMulti:d,isSearchable:m,tabSelectsValue:w,isInitialFocus:T})}return e}),[E,n,r,d,h,m,y,x,a,w,T]),I=Lt(b.Fragment,null,Lt("span",{id:"aria-selection"},O),Lt("span",{id:"aria-focused"},k),Lt("span",{id:"aria-results"},P),Lt("span",{id:"aria-guidance"},C));return Lt(b.Fragment,null,Lt(nr,{id:s},T&&I),Lt(nr,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!T&&I))},ir=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ar=new RegExp("["+ir.map((function(e){return e.letters})).join("")+"]","g"),ur={},sr=0;sr<ir.length;sr++)for(var lr=ir[sr],cr=0;cr<lr.letters.length;cr++)ur[lr.letters[cr]]=lr.base;var fr=function(e){return e.replace(ar,(function(e){return ur[e]}))},pr=function(e,t){void 0===t&&(t=er);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(fr),dr=function(e){return e.replace(/^\s+|\s+$/g,"")},hr=function(e){return"".concat(e.label," ").concat(e.value)},mr=["innerRef"];function yr(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=J(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=J(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Z(e,mr),"onExited","in","enter","exit","appear");return Lt("input",te({ref:t},n,{css:Dt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var vr=["boxSizing","height","overflow","paddingRight","position"],gr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function br(e){e.preventDefault()}function wr(e){e.stopPropagation()}function _r(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Er(){return"ontouchstart"in window||navigator.maxTouchPoints}var Sr=!("undefined"==typeof window||!window.document||!window.document.createElement),xr=0,Or={capture:!1,passive:!1},kr=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Pr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Tr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,b.useRef)(!1),u=(0,b.useRef)(!1),s=(0,b.useRef)(0),l=(0,b.useRef)(null),c=(0,b.useCallback)((function(e,t){if(null!==l.current){var s=l.current,c=s.scrollTop,f=s.scrollHeight,p=s.clientHeight,d=l.current,h=t>0,m=f-p-c,y=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>m?(n&&!a.current&&n(e),d.scrollTop=f,y=!0,a.current=!0):!h&&-t>c&&(o&&!u.current&&o(e),d.scrollTop=0,y=!0,u.current=!0),y&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),f=(0,b.useCallback)((function(e){c(e,e.deltaY)}),[c]),p=(0,b.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,b.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;c(e,t)}),[c]),h=(0,b.useCallback)((function(e){if(e){var t=!!_n&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,b.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,b.useEffect)((function(){if(t){var e=l.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,b.useRef)({}),i=(0,b.useRef)(null),a=(0,b.useCallback)((function(e){if(Sr){var t=document.body,n=t&&t.style;if(r&&vr.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&xr<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+i||0;Object.keys(gr).forEach((function(e){var t=gr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&Er()&&(t.addEventListener("touchmove",br,Or),e&&(e.addEventListener("touchstart",_r,Or),e.addEventListener("touchmove",wr,Or))),xr+=1}}),[r]),u=(0,b.useCallback)((function(e){if(Sr){var t=document.body,n=t&&t.style;xr=Math.max(xr-1,0),r&&xr<1&&vr.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Er()&&(t.removeEventListener("touchmove",br,Or),e&&(e.removeEventListener("touchstart",_r,Or),e.removeEventListener("touchmove",wr,Or)))}}),[r]);return(0,b.useEffect)((function(){if(t){var e=i.current;return a(e),function(){u(e)}}}),[t,a,u]),function(e){i.current=e}}({isEnabled:n});return Lt(b.Fragment,null,n&&Lt("div",{onClick:kr,css:Pr}),t((function(e){o(e),i(e)})))}var Cr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ir=function(e){var t=e.name,n=e.onFocus;return Lt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Cr,value:"",onChange:function(){}})};function Nr(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function jr(){return Nr(/^Mac/i)}var Lr={clearIndicator:Hn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Q({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:qn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Q({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Q({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Q(Q({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Qn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Q({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Dn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,u=o.colors;return Q((Y(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Y(n,"position","absolute"),Y(n,"width","100%"),Y(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Q({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Q({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Q({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Q({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Ln,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,u=i.colors;return Q({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Q({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Q({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Q({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Dr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Rr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:vn(),captureMenuScroll:!vn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Q({ignoreCase:!0,ignoreAccents:!0,stringify:hr,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,s=a?dr(t):t,l=a?dr(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=pr(s),l=fr(l)),"start"===u?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Fr(e,t,n,r){return{type:"option",data:t,isDisabled:Br(e,t,n),isSelected:$r(e,t,n),label:qr(e,t),value:Hr(e,t),index:r}}function Ar(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Fr(e,n,t,r)})).filter((function(t){return zr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Fr(e,n,t,r);return zr(e,i)?i:void 0})).filter(En)}function Mr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ae(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Vr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ae(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function zr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!Yr(e)||!i)&&Gr(e,{label:a,value:u,data:o},r)}var Ur=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},qr=function(e,t){return e.getOptionLabel(t)},Hr=function(e,t){return e.getOptionValue(t)};function Br(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function $r(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Hr(e,t);return n.some((function(t){return Hr(e,t)===r}))}function Gr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Yr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Wr=1,Qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(n,e);var t=function(e){var t=ie();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=jr()||Nr(/^iPhone/i)||Nr(/^iPad/i)||jr()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,u=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:u}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,u=o&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(u){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(ae(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=Sn(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Sn(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Sn(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Ur(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Vr(Ar(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sn.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return qr(r.props,e)},r.getOptionValue=function(e){return Hr(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Lr[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Q(Q({},Jn),e.components);var e},r.buildCategorizedOptions=function(){return Ar(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Mr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Q({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&pn(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Yr(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,y=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():u&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!f||!h||p&&r.isOptionSelected(h,y))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):u&&i&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Wr),r.state.selectValue=ln(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=Ur(o,i[a])}return r}return function(e,t,n){t&&ne(e.prototype,t),n&&ne(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&yn(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(yn(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var u=i.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Dr):Q(Q({},Dr),this.props.theme):Dr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,u=this.props,s=u.isMulti,l=u.isRtl,c=u.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:i,selectProps:u,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Br(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return $r(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Gr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,u=e.menuIsOpen,s=e.required,l=this.getComponents().Input,c=this.state,f=c.inputIsHidden,p=c.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=Q(Q(Q({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?b.createElement(l,te({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):b.createElement(yr,te({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:an,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,s=this.commonProps,l=this.props,c=l.controlShouldRenderValue,f=l.isDisabled,p=l.isMulti,d=l.inputValue,h=l.placeholder,m=this.state,y=m.selectValue,v=m.focusedValue,g=m.isFocused;if(!this.hasValue()||!c)return d?null:b.createElement(u,te({},s,{key:"placeholder",isDisabled:f,isFocused:g,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return y.map((function(t,a){var u=t===v,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return b.createElement(n,te({},s,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:f,key:l,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var w=y[0];return b.createElement(a,te({},s,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,te({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?b.createElement(e,te({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return b.createElement(n,te({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,te({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,c=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,g=p.maxMenuHeight,w=p.menuIsOpen,_=p.menuPlacement,E=p.menuPosition,S=p.menuPortalTarget,x=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,k=p.noOptionsMessage,P=p.onMenuScrollToTop,T=p.onMenuScrollToBottom;if(!w)return null;var C,I=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,u=t.label,s=t.value,p=f===o,d=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),y={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return b.createElement(l,te({},c,{innerProps:y,data:o,isDisabled:i,isSelected:a,key:m,label:u,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,u="".concat(e.getElementId("group"),"-").concat(a),s="".concat(u,"-heading");return b.createElement(n,te({},c,{key:u,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(m){var N=y({inputValue:h});if(null===N)return null;C=b.createElement(u,c,N)}else{var j=k({inputValue:h});if(null===j)return null;C=b.createElement(s,c,j)}var L={minMenuHeight:v,maxMenuHeight:g,menuPlacement:_,menuPosition:E,menuShouldScrollIntoView:O},D=b.createElement(Nn,te({},c,L),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,u=r.maxHeight;return b.createElement(o,te({},c,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),b.createElement(Tr,{captureEnabled:d,onTopArrive:P,onBottomArrive:T,lockEnabled:x},(function(t){return b.createElement(i,te({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":c.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:u,focusedOption:f}),C)})))}));return S||"fixed"===E?b.createElement(a,te({},c,{appendTo:S,controlElement:this.controlRef,menuPlacement:_,menuPosition:E}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,u=this.state.selectValue;if(a&&!this.hasValue()&&!r)return b.createElement(Ir,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=u.map((function(t){return e.getOptionValue(t)})).join(n);return b.createElement("input",{name:i,type:"hidden",value:s})}var l=u.length>0?u.map((function(t,n){return b.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.createElement("input",{name:i,type:"hidden",value:""});return b.createElement("div",null,l)}var c=u[0]?this.getOptionValue(u[0]):"";return b.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return b.createElement(or,te({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,u=i.id,s=i.isDisabled,l=i.menuIsOpen,c=this.state.isFocused,f=this.commonProps=this.getCommonProps();return b.createElement(r,te({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:c}),this.renderLiveRegion(),b.createElement(t,te({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:c,menuIsOpen:l}),b.createElement(o,te({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),b.createElement(n,te({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,u=t.prevWasFocused,s=t.instancePrefix,l=e.options,c=e.value,f=e.menuIsOpen,p=e.inputValue,d=e.isMulti,h=ln(c),m={};if(n&&(c!==n.value||l!==n.options||f!==n.menuIsOpen||p!==n.inputValue)){var y=f?function(e,t){return Mr(Ar(e,t))}(e,h):[],v=f?Vr(Ar(e,h),"".concat(s,"-option")):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,y);m={selectValue:h,focusedOption:b,focusedOptionId:Ur(v,b),focusableOptionsWithIds:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=i,E=a&&u;return a&&!E&&(_={value:Sn(d,h,h[0]||null),options:h,action:"initial-input-focus"},E=!u),"initial-input-focus"===(null==i?void 0:i.action)&&(_=null),Q(Q(Q({},m),w),{},{prevProps:e,ariaSelection:_,prevWasFocused:E})}}]),n}(b.Component);Qr.defaultProps=Rr;var Kr=(0,b.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,u=e.inputValue,s=e.menuIsOpen,l=e.onChange,c=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=Z(e,ee),m=J((0,b.useState)(void 0!==u?u:n),2),y=m[0],v=m[1],g=J((0,b.useState)(void 0!==s?s:o),2),w=g[0],_=g[1],E=J((0,b.useState)(void 0!==d?d:a),2),S=E[0],x=E[1],O=(0,b.useCallback)((function(e,t){"function"==typeof l&&l(e,t),x(e)}),[l]),k=(0,b.useCallback)((function(e,t){var n;"function"==typeof c&&(n=c(e,t)),v(void 0!==n?n:e)}),[c]),P=(0,b.useCallback)((function(){"function"==typeof p&&p(),_(!0)}),[p]),T=(0,b.useCallback)((function(){"function"==typeof f&&f(),_(!1)}),[f]),C=void 0!==u?u:y,I=void 0!==s?s:w,N=void 0!==d?d:S;return Q(Q({},h),{},{inputValue:C,menuIsOpen:I,onChange:O,onInputChange:k,onMenuClose:T,onMenuOpen:P,value:N})}(e);return b.createElement(Qr,te({ref:t},n))})),Xr=Kr,Jr=function(){return Jr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jr.apply(this,arguments)},Zr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},eo=function(e){return Jr(Jr({},e),{borderRadius:0,colors:Jr(Jr({},e.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},to=function(e,t){return(0,b.useMemo)((function(){return{placeholder:function(e){return Jr(Jr({},e),{color:"var(--placeholder-body-color)"})},container:function(e){return Jr(Jr({},e),{fontSize:"inherit"})},control:function(n,r){var o=r.isFocused,i=n;return i=Jr(Jr({},i),{minHeight:40}),Jr(Jr({},i),o?{borderColor:t?"var(--alert-color)":"var(--accent-color)",backgroundColor:e?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(t?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:t?"var(--alert-color)":"var(--accent-color)"}}:{borderColor:t?"var(--alert-color)":"var(--border-color)",backgroundColor:e?"var(--disabled-color)":"white","&:hover":{borderColor:t?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(e){return Jr(Jr({},e),{cursor:"pointer"})},menu:function(e){return Jr(Jr({},e),{zIndex:1e3,minWidth:250})},input:function(e){return Jr(Jr({},e),{boxShadow:"none","input:focus":{boxShadow:"none"}})},multiValue:function(e){return Jr(Jr({},e),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(e){return Jr(Jr({},e),{fontSize:"inherit",padding:3})}}}),[e,t])};function no(e){var t=e.isDisabled,n=e.error,r=Zr(e,["isDisabled","error"]),o=to(t,n);return b.createElement(Xr,Jr({},r,{isDisabled:t,theme:eo,styles:o}))}var ro,oo,io=function(){return io=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},io.apply(this,arguments)};function ao(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.placeholder,s=e.formLabelProps,l=e.value,c=e.onChange,f=e.selectInputProps;return b.createElement(B,{formLabelProps:s,id:t,required:a,error:i,hint:o,label:r},b.createElement(no,io({},f,{id:t,name:n,value:l,placeholder:u,onChange:c,error:!!i})))}!function(e){e.MainNavigationTabs="mainNavigationTabs",e.ContentAreaSidebarItems="contentAreaSidebarItems",e.SettingsAreaSidebarItemGroups="settingsAreaSidebarItemGroups"}(ro||(ro={})),function(e){e.Before="before",e.After="after",e.Content="content",e.Media="media",e.Schema="schema",e.Configuration="configuration",e.CdaPlayground="cdaPlayground",e.Properties="properties",e.Permissions="permissions",e.MenuItems="menuItems",e.SeoPreferences="seoPreferences"}(oo||(oo={}));var uo="Upload SVG",so="svg-uploader",lo="file-upload",co="svg-raw-viewer-modal",fo="New SVG",po=[{label:"Top menu",value:ro.MainNavigationTabs},{label:"Side menu",value:ro.ContentAreaSidebarItems},{label:"Settings menu",value:ro.SettingsAreaSidebarItemGroups}],ho=[{label:"Before menu item",value:oo.Before},{label:"After menu item",value:oo.After}],mo=[{label:"Menu items",value:oo.MenuItems},{label:"Seo preferences",value:oo.SeoPreferences}],yo=[{label:"Properties",value:oo.Properties},{label:"Permissions",value:oo.Permissions}],vo=[{label:"Content",value:oo.Content},{label:"Media",value:oo.Media},{label:"Schema",value:oo.Schema},{label:"Configuration",value:oo.Configuration},{label:"CDA Playground",value:oo.CdaPlayground}];function go(e){return e===ro.SettingsAreaSidebarItemGroups?yo:e===ro.ContentAreaSidebarItems?mo:vo}var bo=function(){return bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bo.apply(this,arguments)};function wo(t){var n=t.ctx,r=n.plugin.attributes.parameters,o=(null==r?void 0:r.pageType)||po[0],i=(null==r?void 0:r.placement)||ho[0],a=(0,b.useMemo)((function(){return(null==r?void 0:r.menuItemPlacement)||go(o.value)[0]}),[null==r?void 0:r.menuItemPlacement,o.value]);function u(e){n.updatePluginParameters(bo(bo({},r),e)),n.notice("Settings updated successfully!")}return(0,e.jsxs)(T,{ctx:n,children:[(0,e.jsx)("p",{children:"This DatoCMS plugin"}),(0,e.jsx)(N,{children:(0,e.jsxs)(R,{children:[(0,e.jsx)(ao,{name:"pageType",id:"pageType",label:"Where do you want to show the menu item?",value:o,selectInputProps:{options:po},onChange:function(e){u({pageType:e,menuItemPlacement:go(e.value)[0]})}}),(0,e.jsx)(ao,{name:"placement",id:"placement",label:"Show the menu item before or after the other menu items?",value:i,selectInputProps:{options:ho},onChange:function(e){u({placement:e})}}),(0,e.jsx)(ao,{name:"menuItemPlacement",id:"menuItemPlacement",label:"".concat("before"===i.value?"Before":"After"," which menu item do you want to show the menu item?"),value:a,selectInputProps:{options:go(o.value)},onChange:function(e){u({menuItemPlacement:e})}})]})})]})}const _o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var Eo,So=new Uint8Array(16);function xo(){if(!Eo&&!(Eo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Eo(So)}for(var Oo=[],ko=0;ko<256;++ko)Oo.push((ko+256).toString(16).slice(1));const Po=function(e,t,n){if(_o.randomUUID&&!t&&!e)return _o.randomUUID();var r=(e=e||{}).random||(e.rng||xo)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e,t=0){return(Oo[e[t+0]]+Oo[e[t+1]]+Oo[e[t+2]]+Oo[e[t+3]]+"-"+Oo[e[t+4]]+Oo[e[t+5]]+"-"+Oo[e[t+6]]+Oo[e[t+7]]+"-"+Oo[e[t+8]]+Oo[e[t+9]]+"-"+Oo[e[t+10]]+Oo[e[t+11]]+Oo[e[t+12]]+Oo[e[t+13]]+Oo[e[t+14]]+Oo[e[t+15]]).toLowerCase()}(r)},To=JSON.parse('{"HJ":"_Spinner--inline_oumod_1","Gk":"_Spinner--centered_oumod_7","FY":"_Spinner__bar_oumod_13"}');var Co=function(){return Co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Co.apply(this,arguments)};function Io(e){for(var t,n=e.size,r=void 0===n?32:n,o=e.placement,i=void 0===o?"inline":o,a=e.style,u=void 0===a?{}:a,s=[],l=0;l<12;l+=1){var c={};c.animationDelay="".concat((l-12)/10,"s"),c.transform="rotate(".concat(30*l,"deg) translate(146%)"),s.push(b.createElement("div",{style:c,className:To.FY,key:l}))}var f={width:.5*r,height:.5*r};return"inline"===i&&(f.marginLeft=.5*r,f.transform="translateY(33%)"),b.createElement("div",{className:E()((t={},t[To.HJ]="inline"===i,t[To.Gk]="centered"===i,t)),style:Co(Co({},u),f)},s)}const No=JSON.parse('{"button":"_button_474wk_1","disabled":"_disabled_474wk_30","buttonType-muted":"_buttonType-muted_474wk_34","buttonType-primary":"_buttonType-primary_474wk_50","buttonType-negative":"_buttonType-negative_474wk_71","buttonSize-xxs":"_buttonSize-xxs_474wk_88","buttonSize-xs":"_buttonSize-xs_474wk_93","buttonSize-s":"_buttonSize-s_474wk_98","buttonSize-m":"_buttonSize-m_474wk_103","buttonSize-l":"_buttonSize-l_474wk_108","buttonSize-xl":"_buttonSize-xl_474wk_113","fullWidth":"_fullWidth_474wk_118","button__leftIcon":"_button__leftIcon_474wk_124","button__rightIcon":"_button__rightIcon_474wk_125"}');function jo(e){var t,n=e.children,r=e.className,o=e.disabled,i=e.buttonType,a=void 0===i?"muted":i,u=e.buttonSize,s=void 0===u?"m":u,l=e.fullWidth,c=e.onClick,f=e.style,p=e.leftIcon,d=e.rightIcon,h=e.type,m=void 0===h?"button":h;return b.createElement("button",{type:m,className:E()(No.button,No["buttonType-".concat(a)],No["buttonSize-".concat(s)],(t={},t[No.disabled]=o,t[No.fullWidth]=l,t),r),disabled:o,onClick:c,style:f},p&&b.createElement("span",{className:No.button__leftIcon},p),n&&b.createElement("span",null,n),d&&b.createElement("span",{className:No.button__rightIcon},d))}const Lo=JSON.parse('{"Te":"_switchInput__inner_1knbg_1","td":"_switchInput_1knbg_1","I4":"_switchInput__checked_1knbg_47","rf":"_switchInput__disabled_1knbg_60"}');var Do=function(){return Do=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Do.apply(this,arguments)},Ro=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Fo(e){var t,n=e.className,r=e.value,o=e.disabled,i=e.onClick,a=e.onChange,u=e.onKeyDown,s=Ro(e,["className","value","disabled","onClick","onChange","onKeyDown"]);function l(e,t){!o&&a&&a(e,t)}var c=E()(Lo.td,n,((t={})[Lo.I4]=r,t[Lo.rf]=o,t));return b.createElement("button",Do({},s,{type:"button",role:"switch","aria-checked":r,disabled:o,className:c,onKeyDown:function(e){"ArrowLeft"===e.key?l(!1,e):"ArrowRight"===e.key&&l(!0,e),null==u||u(e)},onClick:function(e){l(!r,e),null==i||i(e)}}),b.createElement("span",{className:Lo.Te}))}const Ao=JSON.parse('{"Ai":"_switchField__flex_16z4j_1","rO":"_switchField__switchInput_16z4j_6","Tb":"_switchField__label_16z4j_10","s8":"_switchField__below_16z4j_22"}');var Mo=function(){return Mo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mo.apply(this,arguments)};function Vo(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.formLabelProps,s=e.value,l=e.onChange,c=e.switchInputProps;return b.createElement(b.Fragment,null,b.createElement("div",{className:Ao.Ai},b.createElement("div",{className:Ao.rO},b.createElement(Fo,Mo({},c,{name:n,value:s,onChange:l}))),b.createElement(M,Mo({},u,{htmlFor:t,required:a,className:E()(Ao.Tb,null==u?void 0:u.className),error:!!i}),r)),(o||i)&&b.createElement("div",{className:Ao.s8},i&&b.createElement(z,null,i),o&&b.createElement(q,null,o)))}var zo=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Uo="__ARRAY_INDEX__";function qo(e){return e.reduce((function(e,t,n){return 0===n?t:t===Uo?"".concat(e,"[]"):"".concat(e,"[").concat(t,"]")}),"")}function Ho(e){if("number"==typeof e||"string"==typeof e)return e.toString();if(!0===e)return"true";if(!1===e)return"false";throw"Don't know how to serialize param value ".concat(JSON.stringify(e))}function Bo(e,t){void 0===t&&(t=[]);var n=[];if("number"==typeof e||"string"==typeof e||"boolean"==typeof e)n.push([qo(t),Ho(e)]);else if("object"==typeof e)if(Array.isArray(e))for(var r=0,o=e;r<o.length;r++)for(var i=0,a=Bo(o[r],zo(zo([],t,!0),[Uo],!1));i<a.length;i++){var u=a[i];n.push(u)}else if(e)for(var s=0,l=Object.entries(e);s<l.length;s++)for(var c=l[s],f=c[0],p=0,d=Bo(c[1],zo(zo([],t,!0),[f],!1));p<d.length;p++)u=d[p],n.push(u);return n}var $o,Go=($o=function(e,t){return $o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},$o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Yo={BATCH_DATA_VALIDATION_IN_PROGRESS:"The schema of this model changed, we're re-running validations over every record in background. Please retry with this operation in a few seconds!",INSUFFICIENT_PERMISSIONS:"Your role does not permit this action",MAINTENANCE_MODE:"The project is currently in maintenance mode!",DELETE_RESTRICTION:"Sorry, but you cannot delete this resource, as it's currently used/referenced elsewhere!",INVALID_CREDENTIALS:"Credentials are incorrect!",INVALID_EMAIL:"Email address is incorrect!",INVALID_FORMAT:"The format of the parameters passed is incorrect, take a look at the details of the error to know what's wrong!",ITEM_LOCKED:"The operation cannot be completed as some other user is currently editing this record!",LINKED_FROM_PUBLISHED_ITEMS:"Couldn't unpublish the record, as some published records are linked to it!",PLAN_UPGRADE_REQUIRED:"Cannot proceed, please upgrade plan!",PUBLISHED_CHILDREN:"Couldn't unpublish the record, some children records are still published!",REQUIRED_2FA_SETUP:"This project requires every user to turn on 2-factor authentication! Please go to your Dashboard and activate it! (https://dashboard.datocms.com/account/setup-2fa)",REQUIRED_BY_ASSOCIATION:"Cannot delete the record, as it's required by other records:",STALE_ITEM_VERSION:"Someone else made a change while you were editing this record, please refresh the page!",TITLE_ALREADY_PRESENT:"There can only be one Title field per model",UNPUBLISHED_LINK:"Couldn't publish the record, as it links some unpublished records!",UNPUBLISHED_PARENT:"Couldn't publish the record, as the parent record is not published!",UPLOAD_IS_CURRENTLY_IN_USE:"Couldn't delete this asset, as it's currently used by some records!",UPLOAD_NOT_PASSING_FIELD_VALIDATIONS:"Couldn't update this asset since some records are failing to pass the validations!"},Wo={build_triggers:"You've reached the maximum number of build triggers your plan allows",sandbox_environments:"You've reached the maximum number of environments your plan allows",item_types:"You've reached the maximum number of models your plan allows to create",items:"You've reached the maximum number of records your plan allows to create",locales:"You've reached the maximum number of locales your plan allows",mux_encoding_seconds:"You've reached the maximum video encoding limits of your plan",otp:"Two-factor authentication cannot be on the current plan",plugins:"You've reached the maximum number of plugins your plan allows",roles:"You've reached the maximum number of roles your plan allows to create",uploadable_bytes:"You've reached the file storage limits of your plan",users:"You've reached the maximum number of collaborators your plan allows to invite to the project",access_tokens:"You've reached the maximum number of API tokens your plan allows to create"},Qo=function(e){function t(t){var n=this.constructor,r=e.call(this,"API Error!")||this;return Object.setPrototypeOf(r,n.prototype),"captureStackTrace"in Error?Error.captureStackTrace(r,Ko):r.stack=(new Error).stack,r.request=t.request,r.preCallStack=t.preCallStack,r.message="".concat(t.request.method," ").concat(t.request.url,": Timeout error"),r.preCallStack&&(r.stack+="\nCaused By:\n".concat(r.preCallStack)),r}return Go(t,e),t}(Error),Ko=function(e){function t(n){var r=this.constructor,o=e.call(this,"API Error!")||this;Object.setPrototypeOf(o,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(o,t):o.stack=(new Error).stack,o.request=n.request,o.response=n.response,o.preCallStack=n.preCallStack;var i="".concat(n.request.method," ").concat(n.request.url,": ").concat(o.response.status," ").concat(o.response.statusText);return o.errors.length>0&&(i+="\n\n".concat(JSON.stringify(o.errors,null,2))),o.message=i,o.preCallStack&&(o.stack+="\nCaused By:\n".concat(o.preCallStack)),o}return Go(t,e),Object.defineProperty(t.prototype,"errors",{get:function(){return function(e){if("object"!=typeof e||null===e||!("data"in e))return!1;var t=e;if(!Array.isArray(t.data))return!1;var n=t;if(0===n.data.length)return!1;var r=n.data[0];return"object"==typeof r&&null!==r&&"id"in r&&"type"in r&&"attributes"in r&&"api_error"===r.type}(this.response.body)?this.response.body.data:[]},enumerable:!1,configurable:!0}),t.prototype.findError=function(e,t){var n=Array.isArray(e)?e:[e];return this.errors.find((function(e){return n.includes(e.attributes.code)&&(!t||("function"==typeof t?t(e.attributes.details):Object.entries(t).every((function(t){var n=t[0],r=t[1];return e.attributes.details[n]===r}))))}))},Object.defineProperty(t.prototype,"humanMessage",{get:function(){var e=this,t=this.findError("PLAN_UPGRADE_REQUIRED");if(t){var n=t.attributes.details.limit;return"".concat(Wo[n],". Please head over to your account dashboard (https://dashboard.datocms.com/) to upgrade the plan or, if no publicly available plan suits your needs, contact our Sales team (https://www.datocms.com/contact) to get a custom quote!")}var r=Object.keys(Yo).filter((function(t){return e.findError(t)})).map((function(e){return Yo[e]}));return 0===r.length?null:r.join("\n")},enumerable:!1,configurable:!0}),t}(Error),Xo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jo=function(e){function t(){var t=this.constructor,n=e.call(this,"Promise canceled!")||this;return Object.setPrototypeOf(n,t.prototype),n}return Xo(t,e),t}(Error);function Zo(e,t){var n=null,r=new Promise((function(r,o){n=function(){try{t&&t(),o(new Jo)}catch(e){o(e)}},("function"==typeof e?e():e).then(r,o)}));return n&&(r.cancel=n),r}function ei(e){return new Promise((function(t){setTimeout(t,e)}))}var ti,ni=function(){return ni=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ni.apply(this,arguments)},ri="undefined"!=typeof window&&void 0!==window.document;function oi(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o.status,statusText:o.statusText,headers:(u=o.headers,s={},u.forEach((function(e,t){s[t]=e})),s),body:i},preCallStack:a};var u,s}!function(e){e[e.NONE=0]="NONE",e[e.BASIC=1]="BASIC",e[e.BODY=2]="BODY",e[e.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"}(ti||(ti={}));var ii=1;function ai(e){return t=this,n=void 0,o=function(){var t,n,r,o,i,a,u,s,l,c,f,p,d,h,m,y,v,g,b,w,_,E,S,x,O,k,P,T,C,I,N;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(j){switch(j.label){case 0:if(t=ii,ii+=1,void 0===(n=e.fetchFn||("undefined"==typeof fetch?void 0:fetch)||("undefined"==typeof globalThis?void 0:globalThis.fetch)))throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");if(r=e.preCallStack,o=e.userAgent||"@datocms/rest-client-utils",i=e.retryCount||1,a=e.logLevel||ti.NONE,u=!("autoRetry"in e)||e.autoRetry,s=e.logFn||function(){return!0},l=ni({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":o},e.extraHeaders?(L=e.extraHeaders,Object.fromEntries(Object.entries(L).map((function(e){var t=e[0],n=e[1];return[t.toLowerCase(),n]})))):{}),ri&&delete l["user-agent"],c=e.baseUrl.replace(/\/$/,""),f=e.body?JSON.stringify(e.body,null,2):void 0,p=e.queryParams&&Object.keys(e.queryParams).length>0?"?".concat(new URLSearchParams(Bo(e.queryParams)).toString()):"",d="".concat(c).concat(e.url).concat(p),a>=ti.BASIC){if(s("[".concat(t,"] ").concat(e.method," ").concat(d)),a>=ti.BODY_AND_HEADERS)for(h=0,m=Object.entries(l||{});h<m.length;h++)y=m[h],O=y[0],k=y[1],s("[".concat(t,"] ").concat(O,": ").concat(k));a>=ti.BODY&&f&&s("[".concat(t,"] ").concat(f))}j.label=1;case 1:return j.trys.push([1,12,,16]),v=Zo(n(d,{method:e.method,headers:l,body:f})),g=setTimeout((function(){v.cancel()}),e.requestTimeout||3e4),[4,v];case 2:if(b=j.sent(),clearTimeout(g),w=b.headers.get("Content-Type"),_=w&&!w.includes("application/json"),429!==b.status&&!_)return[3,4];if(!u||_&&"GET"!==e.method)throw new Ko(oi(e.method,d,l,e.body,b,void 0,r));return E=b.headers.has("X-RateLimit-Reset")?Number.parseInt(b.headers.get("X-RateLimit-Reset"),10):i,a>=ti.BASIC&&(429===b.status?s("[".concat(t,"] Rate limit exceeded, wait ").concat(E," seconds then retry...")):s("[".concat(t,'] Invalid response content type "').concat(w,'" (status ').concat(b.status,"). Wait ").concat(E," seconds then retry..."))),[4,ei(1e3*E)];case 3:return j.sent(),[2,ai(ni(ni({},e),{retryCount:i+1}))];case 4:if(a>=ti.BASIC&&(s("[".concat(t,"] Status: ").concat(b.status," (").concat(b.statusText,")")),a>=ti.BODY_AND_HEADERS))for(S=0,x=["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"];S<x.length;S++)O=x[S],(k=b.headers.get(O))&&s("[".concat(t,"] ").concat(O,": ").concat(k));return 204!==b.status?[3,5]:(T=void 0,[3,7]);case 5:return[4,b.json()];case 6:T=j.sent(),j.label=7;case 7:return P=T,a>=ti.BODY&&P&&s("[".concat(t,"] ").concat(JSON.stringify(P,null,2))),202!==b.status?[3,9]:[4,e.fetchJobResult(P.data.id)];case 8:if((C=j.sent()).status<200||C.status>=300)throw new Ko(function(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o,statusText:"N/A",headers:{},body:i},preCallStack:a}}(e.method,d,l,e.body,C.status,C.payload,r));P=C.payload,j.label=9;case 9:return b.status>=200&&b.status<300?[2,P]:(I=new Ko(oi(e.method,d,l,e.body,b,P,r)),u&&I.findError("BATCH_DATA_VALIDATION_IN_PROGRESS")?(a>=ti.BASIC&&s("[".concat(t,"] Data validation in progress, wait ").concat(i," seconds then retry...")),[4,ei(1e3*i)]):[3,11]);case 10:return j.sent(),[2,ai(ni(ni({},e),{retryCount:i+1}))];case 11:throw I;case 12:return(N=j.sent())instanceof Jo||function(e){return"object"==typeof e&&!!e&&"code"in e}(N)&&N.code.includes("ETIMEDOUT")?u&&i<5?(a>=ti.BASIC&&s("[".concat(t,"] Timeout error, wait ").concat(i," seconds then retry...")),[4,ei(1e3*i)]):[3,14]:[3,15];case 13:return j.sent(),[2,ai(ni(ni({},e),{retryCount:i+1}))];case 14:throw new Qo(function(e,t,n,r,o){return{request:{url:t,method:e,headers:n,body:r},preCallStack:o}}(e.method,d,l,e.body,r));case 15:throw N;case 16:return[2]}var L}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function u(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}var ui=function(){return ui=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ui.apply(this,arguments)};function si(e){return"object"==typeof e&&!!e&&"id"in e&&"type"in e}function li(e){return Array.isArray(e)&&e.every(si)}function ci(e,t){if("object"!=typeof e||!e)throw new Error("Invalid body!");var n=e,r=n.id,o=n.type,i=n.meta,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["id","type","meta"]),u={},s={};if("*"===t.attributes)for(var l=0,c=Object.entries(a);l<c.length;l++){var f=c[l],p=f[0],d=f[1];if(t.relationships.includes(p))if(si(d)){var h=d.id,m=d.type;s[p]={data:{id:h,type:m}}}else li(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null};else u[p]=d}else if("*"===t.relationships)for(var y=0,v=Object.entries(a);y<v.length;y++){var g=v[y];if(p=g[0],d=g[1],t.attributes.includes(p))u[p]=d;else if(si(d)){var b=d.id,w=d.type;s[p]={data:{id:b,type:w}}}else li(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null}}else for(var _=0,E=Object.entries(a);_<E.length;_++){var S=E[_];if(p=S[0],d=S[1],t.attributes.includes(p))u[p]=d;else if(t.relationships.includes(p))if(si(d)){var x=d.id,O=d.type;s[p]={data:{id:x,type:O}}}else li(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null}}return{data:ui(ui(ui(ui(ui({},r||t.id?{id:r||t.id}:{}),{type:o||t.type}),Object.keys(u).length>0?{attributes:u}:{}),Object.keys(s).length>0?{relationships:s}:{}),i?{meta:i}:{})}}var fi=function(){return fi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fi.apply(this,arguments)};function pi(e){var t=e.id,n=e.type,r=e.attributes,o=e.relationships,i=e.meta;return fi(fi(fi(fi(fi({},t?{id:t}:{}),n?{type:n}:{}),r||{}),o?Object.fromEntries(Object.entries(o).map((function(e){var t=e[0],n=e[1];return[t,null==n?void 0:n.data]}))):{}),i?{meta:i}:{})}function di(e){if("object"!=typeof(t=e)||!t||!("data"in t))throw new Error("Invalid body!");var t;return Array.isArray(e.data)?e.data.map(pi):pi(e.data)}function hi(e){return"string"==typeof e?e:e.id}const mi=function(e){this.client=e};var yi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yi(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/roles",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/roles/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/roles"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/roles/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/roles/".concat(e)})},t.TYPE="role",t}(mi);var gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bi=function(){return bi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bi.apply(this,arguments)},wi=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function _i(e,t){return null==e&&null==t||e===t}function Ei(e,t,n,r){if(!t)return e;var o=t.add,i=t.remove;return wi(wi([],i?i.reduce((function(e,t){var o=bi(bi({},t),{environment:n}),i=e.find((function(e){return function(e,t){for(var n in e)if(!_i(e[n],t[n]))return!1;for(var n in t)if(!_i(e[n],t[n]))return!1;return!0}(e,o)}));if(!i)throw new Error("Cannot find rule ".concat(JSON.stringify(o)," to remove in ").concat(r,"!"));return e.filter((function(e){return e!==i}))}),e):e,!0),o?o.map((function(e){return bi({environment:n},e)})):[],!0)}var Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gi(t,e),t.prototype.updateCurrentEnvironmentPermissions=function(e,t){return n=this,r=void 0,i=function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(s){switch(s.label){case 0:return(r=this.client.config.environment)?[3,2]:[4,this.client.environments.list()];case 1:r=s.sent().find((function(e){return e.meta.primary})).id,s.label=2;case 2:return n=r,[4,this.find(e)];case 3:return o=s.sent(),i=Boolean(t.positive_item_type_permissions||t.negative_item_type_permissions),a=Boolean(t.positive_upload_permissions||t.negative_upload_permissions),u=bi(bi({},i?{positive_item_type_permissions:Ei(o.positive_item_type_permissions,t.positive_item_type_permissions,n,"positive_item_type_permissions"),negative_item_type_permissions:Ei(o.negative_item_type_permissions,t.negative_item_type_permissions,n,"negative_item_type_permissions")}:{}),a?{positive_upload_permissions:Ei(o.positive_upload_permissions,t.positive_upload_permissions,n,"positive_upload_permissions"),negative_upload_permissions:Ei(o.negative_upload_permissions,t.negative_upload_permissions,n,"negative_upload_permissions")}:{}),[2,this.update(e,u)]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i},t}(vi);const xi=Si;var Oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oi(t,e),t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"user",attributes:["is_active"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/users/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/users"})},t.prototype.find=function(e,t){return this.rawFind(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/users/".concat(e),queryParams:t})},t.prototype.findMe=function(e){return this.rawFindMe(e).then((function(e){return di(e)}))},t.prototype.rawFindMe=function(e){return this.client.request({method:"GET",url:"/users/me",queryParams:e})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/users/".concat(e),queryParams:t})},t.TYPE="user",t}(mi);var Pi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-users"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/sso-users/".concat(e)})},t.prototype.copyUsers=function(){return this.rawCopyUsers().then((function(e){return di(e)}))},t.prototype.rawCopyUsers=function(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/sso-users/".concat(e),queryParams:t})},t.TYPE="sso_user",t}(mi);var Ci=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ci(t,e),t.prototype.query=function(e){return this.rawQuery(ci(e,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawQuery=function(e){return this.client.request({method:"POST",url:"/audit-log-events/query",body:e})},t.TYPE="audit_log_event",t}(mi);var Ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ni(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/menu-items/".concat(e)})},t.TYPE="menu_item",t}(mi);var Li=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/schema-menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/schema-menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/schema-menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/schema-menu-items/".concat(e)})},t.TYPE="schema_menu_item",t}(mi);var Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Fi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ri(t,e),t.prototype.create=function(e,t){return this.rawCreate(ci(e,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]}),t).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types",body:e,queryParams:t})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-types/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-types"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/duplicate")})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/item-types/".concat(e),queryParams:t})},t.TYPE="item_type",t}(mi);var Ai=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ai(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fields"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fields/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(hi(e)).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields")})},t.prototype.referencing=function(e){return this.rawReferencing(hi(e)).then((function(e){return di(e)}))},t.prototype.rawReferencing=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/referencing")})},t.prototype.related=function(e){return this.rawRelated(hi(e)).then((function(e){return di(e)}))},t.prototype.rawRelated=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/related")})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fields/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fields/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/fields/".concat(e,"/duplicate")})},t.TYPE="field",t}(mi);var Vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vi(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fieldsets"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fieldsets/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(hi(e)).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fieldsets")})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fieldsets/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fieldsets/".concat(e)})},t.TYPE="fieldset",t}(mi);var Ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ui(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/sessions",body:e})},t.TYPE="session",t}(mi);var Hi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hi(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/access_tokens",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/access_tokens/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/access_tokens"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/access_tokens/".concat(e)})},t.prototype.regenerateToken=function(e){return this.rawRegenerateToken(hi(e)).then((function(e){return di(e)}))},t.prototype.rawRegenerateToken=function(e){return this.client.request({method:"POST",url:"/access_tokens/".concat(e,"/regenerate_token")})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/access_tokens/".concat(e),queryParams:t})},t.TYPE="access_token",t}(mi);var $i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $i(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/plugins",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/plugins/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/plugins"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/plugins/".concat(e)})},t.prototype.fields=function(e){return this.rawFields(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFields=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e,"/fields")})},t.TYPE="plugin",t}(mi);var Yi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yi(t,e),t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/job-results/".concat(e)})},t.TYPE="job_result",t}(mi);var Qi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-limits"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/subscription-limits/".concat(e)})},t.TYPE="subscription_limit",t}(mi);var Xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},t.TYPE="subscription_feature",t}(mi);var Zi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-events"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-events/".concat(e)})},t.TYPE="build_event",t}(mi);var ta=o(3271),na=function(e){return this instanceof na?(this.v=e,this):new na(e)};function ra(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof na?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,s,l,c,f,p,d,h,m,y;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(v){switch(v.label){case 0:if((r=(null==n?void 0:n.perPage)||e.defaultLimit)>e.maxLimit)throw new Error("perPage option cannot exceed maximum value of ".concat(e.maxLimit));if((o=(null==n?void 0:n.concurrency)||1)>10)throw new Error("concurrency option cannot exceed maximum value of 10");return[4,na(t({limit:r,offset:0}))];case 1:i=v.sent(),a=0,u=i.data,v.label=2;case 2:return a<u.length?(y=u[a],[4,na(y)]):[3,6];case 3:return[4,v.sent()];case 4:v.sent(),v.label=5;case 5:return a++,[3,2];case 6:for(s=i.meta.total_count,l=new ta.Scheduler(o),c=[],f=function(e){c.push(l.enqueue((function(){return t({limit:r,offset:e})})))},p=r;p<s;p+=r)f(p);v.label=7;case 7:return c.length>0?[4,na(c.shift())]:[3,14];case 8:d=v.sent(),h=0,m=d.data,v.label=9;case 9:return h<m.length?(y=m[h],[4,na(y)]):[3,13];case 10:return[4,v.sent()];case 11:v.sent(),v.label=12;case 12:return h++,[3,9];case 13:return[3,7];case 14:return[2]}}))}))}function oa(e){e&&"page"in e&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}var ia=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aa=function(){return aa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aa.apply(this,arguments)},ua=function(e){return this instanceof ua?(this.v=e,this):new ua(e)},sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ia(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/items",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof ua?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,ua(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,ua(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,ua(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(aa(aa({},e),{page:t}))}),t)},t.prototype.validateExisting=function(e,t){return this.rawValidateExisting(hi(e),ci(t,{id:hi(e),type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateExisting=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/validate"),body:t})},t.prototype.validateNew=function(e){return this.rawValidateNew(ci(e,{type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateNew=function(e){return this.client.request({method:"POST",url:"/items/validate",body:e})},t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/items",body:e})},t.prototype.duplicate=function(e){return this.rawDuplicate(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/items/".concat(e,"/duplicate")})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/items/".concat(e),body:t})},t.prototype.references=function(e,t){return this.rawReferences(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/references"),queryParams:t})},t.prototype.find=function(e,t){return this.rawFind(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e),queryParams:t})},t.prototype.currentVsPublishedState=function(e){return this.rawCurrentVsPublishedState(hi(e)).then((function(e){return di(e)}))},t.prototype.rawCurrentVsPublishedState=function(e){return this.client.request({method:"GET",url:"/items/".concat(e,"/current-vs-published-state")})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e)})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return di(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/items",queryParams:e})},t.prototype.batchPublish=function(e){return this.rawBatchPublish(e).then((function(e){return di(e)}))},t.prototype.rawBatchPublish=function(e){return this.client.request({method:"PUT",url:"/items/publish",queryParams:e})},t.prototype.batchUnpublish=function(e){return this.rawBatchUnpublish(e).then((function(e){return di(e)}))},t.prototype.rawBatchUnpublish=function(e){return this.client.request({method:"PUT",url:"/items/unpublish",queryParams:e})},t.prototype.publish=function(e,t,n){return this.rawPublish(hi(e),t?ci(t,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,n).then((function(e){return di(e)}))},t.prototype.rawPublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/publish"),body:t,queryParams:n})},t.prototype.unpublish=function(e,t,n){return this.rawUnpublish(hi(e),t?ci(t,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,n).then((function(e){return di(e)}))},t.prototype.rawUnpublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/unpublish"),body:t,queryParams:n})},t.prototype.bulkPublish=function(e){return this.rawBulkPublish(ci(e,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then((function(e){return di(e)}))},t.prototype.rawBulkPublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/publish",body:e})},t.prototype.bulkUnpublish=function(e){return this.rawBulkUnpublish(ci(e,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then((function(e){return di(e)}))},t.prototype.rawBulkUnpublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(ci(e,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then((function(e){return di(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:e})},t.prototype.bulkMoveToStage=function(e){return this.rawBulkMoveToStage(ci(e,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then((function(e){return di(e)}))},t.prototype.rawBulkMoveToStage=function(e){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:e})},t.TYPE="item",t}(mi);const la=sa;var ca=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fa=function(){return fa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fa.apply(this,arguments)},pa=function(e){return this instanceof pa?(this.v=e,this):new pa(e)},da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ca(t,e),t.prototype.restore=function(e){return this.rawRestore(hi(e)).then((function(e){return di(e)}))},t.prototype.rawRestore=function(e){return this.client.request({method:"POST",url:"/versions/".concat(e,"/restore")})},t.prototype.list=function(e,t){return this.rawList(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawList=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/versions"),queryParams:t})},t.prototype.listPagedIterator=function(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof pa?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,s,l,c;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(f){switch(f.label){case 0:f.trys.push([0,9,10,15]),r=!0,o=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(hi(e),t,n)),f.label=1;case 1:return[4,pa(o.next())];case 2:if(i=f.sent(),u=i.done)return[3,8];c=i.value,r=!1,f.label=3;case 3:return f.trys.push([3,,6,7]),[4,pa(pi(c))];case 4:return[4,f.sent()];case 5:return f.sent(),[3,7];case 6:return r=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return a=f.sent(),s={error:a},[3,15];case 10:return f.trys.push([10,,13,14]),r||u||!(l=o.return)?[3,12]:[4,pa(l.call(o))];case 11:f.sent(),f.label=12;case 12:return[3,14];case 13:if(s)throw s.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t,n){var r=this;return oa(t),ra({defaultLimit:15,maxLimit:50},(function(n){return r.rawList(e,fa(fa({},t),{page:n}))}),n)},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/versions/".concat(e)})},t.TYPE="item_version",t}(mi);const ha=da;var ma=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ya=function(){return ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ya.apply(this,arguments)},va=function(e){return this instanceof va?(this.v=e,this):new va(e)},ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ma(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/uploads",body:e})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof va?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,va(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,va(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,va(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(ya(ya({},e),{page:t}))}),t)},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/".concat(e)})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/uploads/".concat(e),body:t})},t.prototype.batchAddTags=function(e,t){return this.rawBatchAddTags(ci(e,{type:"upload",attributes:["tags"],relationships:[]}),t).then((function(e){return di(e)}))},t.prototype.rawBatchAddTags=function(e,t){return this.client.request({method:"PUT",url:"/uploads/batch-add-tags",body:e,queryParams:t})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return di(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/batch-destroy",queryParams:e})},t.prototype.references=function(e,t){return this.rawReferences(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/references"),queryParams:t})},t.prototype.bulkTag=function(e){return this.rawBulkTag(ci(e,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then((function(e){return di(e)}))},t.prototype.rawBulkTag=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(ci(e,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then((function(e){return di(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:e})},t.TYPE="upload",t}(mi);const ba=ga;var wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const _a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wa(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"upload_request",attributes:["filename"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-requests",body:e})},t.TYPE="upload_request",t}(mi);var Ea=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ea(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/uploads/".concat(e,"/tracks"),body:t})},t.prototype.list=function(e){return this.rawList(hi(e)).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/tracks")})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),hi(t)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/uploads/".concat(e,"/tracks/").concat(t)})},t.prototype.generateSubtitles=function(e,t){return this.rawGenerateSubtitles(hi(e),ci(t,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawGenerateSubtitles=function(e,t){return this.client.request({method:"POST",url:"/uploads/".concat(e,"/tracks/generate-subtitles"),body:t})},t.TYPE="upload_track",t}(mi);var xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xa(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-publication"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-publication")})},t.TYPE="scheduled_publication",t}(mi);var ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ka(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-unpublishing"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-unpublishing")})},t.TYPE="scheduled_unpublishing",t}(mi);var Ta=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ca=function(){return Ca=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ca.apply(this,arguments)},Ia=function(e){return this instanceof Ia?(this.v=e,this):new Ia(e)},Na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/search-results",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Ia?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,Ia(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,Ia(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,Ia(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:20,maxLimit:100},(function(t){return n.rawList(Ca(Ca({},e),{page:t}))}),t)},t.TYPE="search_result",t}(mi);const ja=Na;var La=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return La(t,e),t.prototype.fork=function(e,t,n){return this.rawFork(hi(e),ci(t,{id:hi(e),type:"environment",attributes:[],relationships:[]}),n).then((function(e){return di(e)}))},t.prototype.rawFork=function(e,t,n){return this.client.request({method:"POST",url:"/environments/".concat(e,"/fork"),body:t,queryParams:n})},t.prototype.promote=function(e){return this.rawPromote(hi(e)).then((function(e){return di(e)}))},t.prototype.rawPromote=function(e){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/promote")})},t.prototype.rename=function(e,t){return this.rawRename(hi(e),ci(t,{id:hi(e),type:"environment",attributes:[],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawRename=function(e,t){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/rename"),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/environments"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/environments/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/environments/".concat(e)})},t.TYPE="environment",t}(mi);var Ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return di(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/maintenance-mode"})},t.prototype.activate=function(e){return this.rawActivate(e).then((function(e){return di(e)}))},t.prototype.rawActivate=function(e){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:e})},t.prototype.deactivate=function(){return this.rawDeactivate().then((function(e){return di(e)}))},t.prototype.rawDeactivate=function(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})},t.TYPE="maintenance_mode",t}(mi);var Aa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/webhooks",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/webhooks/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/webhooks"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/webhooks/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/webhooks/".concat(e)})},t.TYPE="webhook",t}(mi);var Va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),za=function(){return za=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},za.apply(this,arguments)},Ua=function(e){return this instanceof Ua?(this.v=e,this):new Ua(e)},qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Va(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Ua?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,Ua(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,Ua(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,Ua(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(za(za({},e),{page:t}))}),t)},t.prototype.resendWebhook=function(e){return this.rawResendWebhook(hi(e))},t.prototype.rawResendWebhook=function(e){return this.client.request({method:"POST",url:"/webhook_calls/".concat(e,"/resend_webhook")})},t.TYPE="webhook_call",t}(mi);const Ha=qa;var Ba=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const $a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ba(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-triggers"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-triggers/".concat(e)})},t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/build-triggers",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"build_trigger",attributes:["name","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e),body:t})},t.prototype.trigger=function(e){return this.rawTrigger(hi(e))},t.prototype.rawTrigger=function(e){return this.client.request({method:"POST",url:"/build-triggers/".concat(e,"/trigger")})},t.prototype.abort=function(e){return this.rawAbort(hi(e))},t.prototype.rawAbort=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort")})},t.prototype.abortIndexing=function(e){return this.rawAbortIndexing(hi(e))},t.prototype.rawAbortIndexing=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort_indexing")})},t.prototype.reindex=function(e){return this.rawReindex(hi(e))},t.prototype.rawReindex=function(e){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e,"/reindex")})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e)})},t.TYPE="build_trigger",t}(mi);var Ga=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ga(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/item-type-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-type-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-type-filters"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-type-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/item-type-filters/".concat(e)})},t.TYPE="item_type_filter",t}(mi);var Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wa(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/upload-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/upload-filters"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/upload-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/upload-filters/".concat(e)})},t.TYPE="upload_filter",t}(mi);var Ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ka(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/site-invitations",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"site_invitation",attributes:[],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/site-invitations/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/site-invitations"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site-invitations/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/site-invitations/".concat(e)})},t.prototype.resend=function(e){return this.rawResend(hi(e)).then((function(e){return di(e)}))},t.prototype.rawResend=function(e){return this.client.request({method:"POST",url:"/site-invitations/".concat(e,"/resend")})},t.TYPE="site_invitation",t}(mi);var Ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ja(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/editing-sessions"})},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/editing-sessions/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/editing-sessions/".concat(e)})},t.TYPE="editing_session",t}(mi);var eu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const tu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eu(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-groups"})},t.prototype.copyRoles=function(e){return this.rawCopyRoles(hi(e)).then((function(e){return di(e)}))},t.prototype.rawCopyRoles=function(e){return this.client.request({method:"POST",url:"/sso-groups/".concat(e,"/copy-roles")})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"sso_group",attributes:["priority"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/sso-groups/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/sso-groups/".concat(e)})},t.TYPE="sso_group",t}(mi);var nu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nu(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return di(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/sso-settings"})},t.prototype.generateToken=function(){return this.rawGenerateToken().then((function(e){return di(e)}))},t.prototype.rawGenerateToken=function(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})},t.prototype.update=function(e){return this.rawUpdate(ci(e,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/sso-settings",body:e})},t.TYPE="sso_settings",t}(mi);var ou=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ou(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:e})},t.TYPE="emoji_suggestions",t}(mi);var au=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const uu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return au(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return di(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/white-label-settings"})},t.prototype.update=function(e){return this.rawUpdate(ci(e,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/white-label-settings",body:e})},t.TYPE="white_label_settings",t}(mi);var su=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const lu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return su(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return di(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/public-info"})},t.TYPE="public_info",t}(mi);var cu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cu(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/daily-site-usages"})},t.TYPE="daily_usage",t}(mi);var pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pu(t,e),t.prototype.find=function(e,t){return this.rawFind(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/usage-log-counters/".concat(e),queryParams:t})},t.TYPE="usage_counter",t}(mi);var hu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mu=function(){return mu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mu.apply(this,arguments)},yu=function(e){return this instanceof yu?(this.v=e,this):new yu(e)},vu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof yu?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,yu(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,yu(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,yu(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(mu(mu({},e),{page:t}))}),t)},t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"upload_tag",attributes:["name"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-tags",body:e})},t.TYPE="upload_tag",t}(mi);const gu=vu;var bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wu=function(){return wu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wu.apply(this,arguments)},_u=function(e){return this instanceof _u?(this.v=e,this):new _u(e)},Eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof _u?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,_u(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,_u(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,_u(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(wu(wu({},e),{page:t}))}),t)},t.TYPE="upload_smart_tag",t}(mi);const Su=Eu;var xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xu(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site",queryParams:e})},t.prototype.update=function(e){return this.rawUpdate(ci(e,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled","force_use_of_sandbox_environments"],relationships:["sso_default_role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/site",body:e})},t.prototype.activateImprovedTimezoneManagement=function(){return this.rawActivateImprovedTimezoneManagement().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedTimezoneManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})},t.prototype.activateImprovedHexManagement=function(){return this.rawActivateImprovedHexManagement().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedHexManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})},t.prototype.activateImprovedGqlMultilocaleFields=function(){return this.rawActivateImprovedGqlMultilocaleFields().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedGqlMultilocaleFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})},t.prototype.activateImprovedGqlVisibilityControl=function(){return this.rawActivateImprovedGqlVisibilityControl().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedGqlVisibilityControl=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})},t.prototype.activateImprovedBooleanFields=function(){return this.rawActivateImprovedBooleanFields().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedBooleanFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})},t.prototype.updateAssetsCdnDefaultSettings=function(e){return this.rawUpdateAssetsCdnDefaultSettings(ci(e,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdateAssetsCdnDefaultSettings=function(e){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:e})},t.TYPE="site",t}(mi);var ku=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Pu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ku(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/workflows",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/workflows/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/workflows"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/workflows/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/workflows/".concat(e)})},t.TYPE="workflow",t}(mi);var Tu=function(){return Tu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tu.apply(this,arguments)},Cu=function(){function e(e){this.config=e,this.roles=new xi(this),this.users=new ki(this),this.ssoUsers=new Ti(this),this.auditLogEvents=new Ii(this),this.menuItems=new ji(this),this.schemaMenuItems=new Di(this),this.itemTypes=new Fi(this),this.fields=new Mi(this),this.fieldsets=new zi(this),this.session=new qi(this),this.accessTokens=new Bi(this),this.plugins=new Gi(this),this.jobResults=new Wi(this),this.subscriptionLimits=new Ki(this),this.subscriptionFeatures=new Ji(this),this.buildEvents=new ea(this),this.items=new la(this),this.itemVersions=new ha(this),this.uploads=new ba(this),this.uploadRequest=new _a(this),this.uploadTracks=new Sa(this),this.scheduledPublication=new Oa(this),this.scheduledUnpublishing=new Pa(this),this.searchResults=new ja(this),this.environments=new Da(this),this.maintenanceMode=new Fa(this),this.webhooks=new Ma(this),this.webhookCalls=new Ha(this),this.buildTriggers=new $a(this),this.itemTypeFilters=new Ya(this),this.uploadFilters=new Qa(this),this.siteInvitations=new Xa(this),this.editingSessions=new Za(this),this.ssoGroups=new tu(this),this.ssoSettings=new ru(this),this.emojiSuggestions=new iu(this),this.whiteLabelSettings=new uu(this),this.publicInfo=new lu(this),this.dailyUsages=new fu(this),this.usageCounters=new du(this),this.uploadTags=new gu(this),this.uploadSmartTags=new Su(this),this.site=new Ou(this),this.workflows=new Pu(this)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.config.baseUrl||e.defaultBaseUrl},enumerable:!1,configurable:!0}),e.prototype.request=function(e){var t=this;return ai(Tu(Tu(Tu({},this.config),e),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v3.3.5",baseUrl:this.baseUrl,preCallStack:(new Error).stack,extraHeaders:Tu(Tu(Tu({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(e){return t.jobResultsFetcher?t.jobResultsFetcher(e):function(){return n=this,r=void 0,i=function(){var n,r,o;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(i){switch(i.label){case 0:r=0,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,ei(1e3*(r+=1))];case 2:return i.sent(),[4,t.jobResults.find(e)];case 3:return n=i.sent(),[3,5];case 4:if(!((o=i.sent())instanceof Ko)||404!==o.response.status)throw o;return[3,5];case 5:if(!n)return[3,1];i.label=6;case 6:return[2,n]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i}()}}))},e.prototype.eventsChannelName=function(){return e=this,t=void 0,r=function(){var e;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(t){switch(t.label){case 0:return this.cachedEventsChannelName?[2,this.cachedEventsChannelName]:[4,this.site.rawFind()];case 1:return e=t.sent().data,this.cachedEventsChannelName=this.config.environment?"private-site-".concat(e.id,"-environment-").concat(this.config.environment):"private-site-".concat(e.id),[2,this.cachedEventsChannelName]}}))},new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}));var e,t,n,r},e.defaultBaseUrl="https://site-api.datocms.com",e}(),Iu=function(){return Iu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Iu.apply(this,arguments)};function Nu(e,t,n){var r=this;void 0===n&&(n={});var o=n.filename||("name"in t?t.name:void 0);if(!o)throw new Error("Missing filename, please provide it as an option!");var i=!1,a=void 0;return Zo((function(){return u=r,s=void 0,c=function(){var r,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:return n.onProgress&&(null==n||n.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:o}})),[4,e.uploadRequest.create({filename:o})];case 1:if(r=c.sent(),u=r.id,s=r.url,l=r.request_headers,i)throw new Jo;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=function(e,t,n){var r=void 0===n?{}:n,o=r.onProgress,i=r.additionalHeaders,a=new XMLHttpRequest;return Zo(new Promise((function(n,r){if(o&&a.upload&&(a.upload.onprogress=function(e){e.lengthComputable&&o({type:"UPLOADING_FILE",payload:{progress:Math.round(e.loaded/e.total*100)}})}),a.onreadystatechange=function(){4===a.readyState&&(200===a.status?n():r(new Error("Status ".concat(a.status))))},a.addEventListener("error",r,!1),a.open("PUT",t,!0),i)for(var u=0,s=Object.entries(i);u<s.length;u++){var l=s[u],c=l[0],f=l[1];a.setRequestHeader(c,f)}a.send(e)})),(function(){a.onreadystatechange=null,a.abort()}))}(t,s,Iu(Iu({},n),{additionalHeaders:l})),[4,a];case 2:return c.sent(),[2,u]}}))},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}o((c=c.apply(u,s||[])).next())}));var u,s,l,c}),(function(){a?a.cancel():i=!0}))}var ju=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lu=function(){return Lu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lu.apply(this,arguments)},Du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ju(t,e),t.prototype.createFromFileOrBlob=function(e){var t,n=this,r=!1;return Zo((function(){return o=n,i=void 0,u=function(){var n,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(s){switch(s.label){case 0:if(r)throw new Jo;return n=e.fileOrBlob,o=e.filename,i=e.onProgress,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["fileOrBlob","filename","onProgress"]),[4,t=Nu(this.client,n,{filename:o,onProgress:i})];case 1:return u=s.sent(),i&&i({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(Lu(Lu({},a),{path:u}))]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(u.next(e))}catch(e){t(e)}}function r(e){try{s(u.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((u=u.apply(o,i||[])).next())}));var o,i,a,u}),(function(){t?t.cancel():r=!0}))},t}(ba);const Ru=Du;var Fu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Au=function(e){function t(t){var n=e.call(this,t)||this;return n.uploads=new Ru(n),n}return Fu(t,e),t}(Cu),Mu=o(6454);function Vu(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);if(0===(e=e.trim()).length)return!1;if(!0!==Mu.XMLValidator.validate(e))return!1;let t;const n=new Mu.XMLParser;try{t=n.parse(e)}catch{return!1}return!!t&&!!Object.keys(t).some((e=>"svg"===e.toLowerCase()))}function zu(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z"})})}function Uu(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0H177.1c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H80.1 32 24C10.7 80 0 90.7 0 104s10.7 24 24 24H35.6L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3H324.6c33.5 0 61.3-25.9 63.8-59.3L412.4 128H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8H367.9 354.2zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128H364.3z"})})}var qu="ImageViewer-module__border--CocHd",Hu="ImageViewer-module__caption--qKvmP",Bu="ImageViewer-module__clickable--YNkn4",$u="ImageViewer-module__dropdown--V_fG8",Gu="ImageViewer-module__dropdownButton--edHOU",Yu="ImageViewer-module__dropdownDeleteButton--M4_Y7",Wu="ImageViewer-module__dropdownMenu--ziYe3",Qu="ImageViewer-module__dropdownMenuButton--Fnta0",Ku="ImageViewer-module__dropdownMenuDeleteButton--Jj5DS",Xu="ImageViewer-module__filename--ZX4Qx",Ju="ImageViewer-module__image--PBt7a",Zu="ImageViewer-module__imageWithFilename--szUif",es="ImageViewer-module__medium--xtt2R",ts="ImageViewer-module__raw--xfmgD",ns="ImageViewer-module__root--PHPSR",rs="ImageViewer-module__selected--v7MzH",os="ImageViewer-module__small--C5ma5",is="ImageViewer-module__tag--PrjB5",as="ImageViewer-module__tagText--LOlAw";function us(t){var n,r,o,i,a=t.image,u=t.component,s=void 0===u?"div":u,l=t.selected,c=t.showTag,f=t.disabled,p=t.size,d=void 0===p?"l":p,h=t.onDelete,m=t.onShowUpload,y=t.onShowRaw,v=t.onClick,g=(0,b.useState)(!1),w=g[0],_=g[1],S=null,x=v?"button":s,O=(o=function(){return _(!1)},i=(0,b.useRef)(),(0,b.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&o()};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[i]),i);return"svg"===a.type&&(S=(0,e.jsx)("div",{className:ts,dangerouslySetInnerHTML:{__html:a.raw}})),"image"===a.type&&(S=(0,e.jsx)("img",{src:a.url,alt:a.filename})),(0,e.jsxs)(x,{className:E()(ns,(n={},n[qu]=v||h,n[Bu]=v,n[rs]=l,n[os]="s"===d,n[es]="m"===d,n)),onClick:v?function(){return v(a)}:void 0,disabled:f,children:[(h||m||y)&&(0,e.jsxs)("div",{ref:O,children:[(0,e.jsx)("div",{className:$u,children:y||m||!h?(0,e.jsxs)("button",{type:"button",className:Gu,onClick:function(){return _(!w)},children:[(0,e.jsx)(zu,{}),(0,e.jsx)("span",{className:"sr-only",children:w?"Close menu":"Open menu"})]}):(0,e.jsxs)("button",{type:"button",className:E()(Gu,Yu),onClick:function(){return h(a)},children:[(0,e.jsx)(Uu,{}),(0,e.jsx)("span",{className:"sr-only",children:"Delete icon"})]})}),w&&(0,e.jsxs)("div",{className:Wu,children:["svg"===a.type&&y&&(0,e.jsx)("button",{type:"button",className:Qu,onClick:function(){return y(a)},children:"Show raw details"}),"image"===a.type&&m&&(0,e.jsx)("button",{type:"button",className:Qu,onClick:function(){return m(a)},children:"Show image details"}),h&&(0,e.jsx)("button",{type:"button",className:Ku,onClick:function(){return h(a)},children:"Delete"})]})]}),c&&(0,e.jsx)("div",{className:is,children:(0,e.jsxs)("p",{className:E()(as,"body--small"),children:["svg"===a.type&&"Raw"," ","image"===a.type&&"Raw + Image"]})}),(0,e.jsx)("div",{className:E()(Ju,(r={},r[Zu]=a.filename,r)),children:S}),a.filename&&(0,e.jsx)("div",{className:Hu,children:(0,e.jsx)("span",{className:E()("body--medium",Xu),children:a.filename})})]})}var ss="ImageList-module__root--zkSEd",ls="ImageList-module__small--Zz7tX",cs="ImageList-module__spinner--GZyBO";function fs(t){var n,r=t.svgs,o=t.activeSvgs,i=t.onDelete,a=t.onShowUpload,u=t.onShowRaw,s=t.onClick,l=t.size,c=t.showTag,f=t.disabled,p=t.isLoading;return r&&0!==r.length?(0,e.jsxs)("ul",{className:E()(ss,(n={},n[ls]="s"===l,n)),children:[null==r?void 0:r.map((function(t){var n;return(0,e.jsx)(us,{component:"li",image:t,onDelete:i,onShowUpload:a,onShowRaw:u,onClick:s,selected:null===(n=null==o?void 0:o.map((function(e){return e.id})))||void 0===n?void 0:n.includes(t.id),size:l,showTag:c,disabled:f},t.id)})),p&&(0,e.jsx)("div",{className:cs,children:(0,e.jsx)(Io,{})})]}):null}var ps="SvgViewer-module__filenameInput--YggJw",ds="SvgViewer-module__root--JLl6V",hs="SvgViewer-module__svgInput--p8Mqd",ms="SvgViewer-module__text--FQb4f",ys="SvgViewer-module__textarea--P5eOo",vs="SvgViewer-module__viewer--ps6H1",gs="SvgViewer-module__viewerFilename--gMlUO",bs="SvgViewer-module__viewerSvg--RPqBE",ws="SvgViewer-module__viewerSvgElement--VfV8v",_s="SvgViewer-module__viewerText--L91TL";function Es(t){var n=t.value,r=t.onChangeSvg,o=t.filename,i=t.onChangeFilename,a=(0,b.useMemo)((function(){return n&&!Vu(n)}),[n]);return(0,e.jsxs)("form",{className:ds,children:[(0,e.jsxs)("div",{className:hs,children:[(0,e.jsx)("label",{className:"sr-only",htmlFor:"embeded-svg",children:"Embeded svg"}),(0,e.jsx)("textarea",{className:ys,name:"embeded-svg",id:"embeded-svg",value:n,onChange:function(e){return r(e.target.value)},placeholder:"<svg>Paste your svg here</svg>"})]}),(0,e.jsxs)("div",{className:vs,children:[(0,e.jsxs)("div",{className:bs,children:[Vu(n)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("div",{className:ws,dangerouslySetInnerHTML:{__html:n}})}),(a||!n)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:_s,children:[n&&a&&(0,e.jsx)(z,{children:"Use a valid svg string"}),!n&&(0,e.jsxs)("p",{className:ms,children:[(0,e.jsx)("span",{className:"h3",children:"Nothing to show"}),(0,e.jsx)("span",{className:"body--medium",children:"Input a valid svg"})]})]})})]}),(0,e.jsx)("div",{className:gs,children:Vu(n)&&i&&(0,e.jsx)("input",{className:ps,value:o,onChange:function(e){return i(e.target.value)},autoFocus:!0})})]})]})}function Ss(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"})})}var xs=function(){return xs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xs.apply(this,arguments)},Os=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},ks=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function Ps(e,t){return Os(this,void 0,void 0,(function(){var n,r=this;return ks(this,(function(o){switch(o.label){case 0:return[4,e.loadFieldsUsingPlugin()];case 1:return n=o.sent(),[4,Promise.all(n.map((function(n){return Os(r,void 0,void 0,(function(){var r,o;return ks(this,(function(i){switch(i.label){case 0:return r=n.attributes.appearance.parameters,t&&r.selectedSvgs?(o=r.selectedSvgs.filter((function(e){return null==t?void 0:t.find((function(t){return t.id===e.id}))})),[4,e.updateFieldAppearance(n.id,[{operation:"updateEditor",newParameters:xs(xs({},r),{selectedSvgs:o})}])]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))})))];case 2:return o.sent(),[2]}}))}))}var Ts=function(){return Ts=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ts.apply(this,arguments)},Cs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Is=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},Ns=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function js(t){var n,r,o=t.ctx,i=o.plugin.attributes.parameters,a=(0,b.useState)(""),u=a[0],s=a[1],l=(0,b.useState)(fo),c=l[0],f=l[1],p=(0,b.useState)(!1),d=p[0],h=p[1],m=(0,b.useState)(!1),y=m[0],v=m[1],g=(0,b.useState)(!1),w=g[0],_=g[1],E=o.currentUserAccessToken,S=o.environment;function x(e){return Cs(this,void 0,void 0,(function(){return Is(this,(function(t){switch(t.label){case 0:return[4,o.updatePluginParameters(Ts(Ts({},i),{svgs:Ns([e],i.svgs||[],!0)}))];case 1:return t.sent(),o.notice("Svg uploaded successfully!"),[2]}}))}))}function O(e){return Cs(this,void 0,void 0,(function(){var t;return Is(this,(function(n){switch(n.label){case 0:if(!e||!Vu(e))return[2];t={id:Po(),filename:c,type:"svg",raw:e},n.label=1;case 1:return n.trys.push([1,,3,4]),h(!0),[4,x(t)];case 2:return n.sent(),[3,4];case 3:return h(!1),s(""),f(fo),[7];case 4:return[2]}}))}))}function k(e){return Cs(this,void 0,void 0,(function(){var t,n,o;return Is(this,(function(i){switch(i.label){case 0:if(!e||!Vu(e))return[2];t=new Blob([e],{type:"image/svg+xml"}),n=new File([t],c),i.label=1;case 1:return i.trys.push([1,,4,5]),h(!0),[4,r.uploads.createFromFileOrBlob({fileOrBlob:n,filename:"".concat(c,".svg")})];case 2:return o=i.sent(),[4,x({id:Po(),filename:c,type:"image",imageId:o.id,url:o.url,raw:e})];case 3:return i.sent(),[3,5];case 4:return h(!1),s(""),f(fo),[7];case 5:return[2]}}))}))}function P(e){return Cs(this,void 0,void 0,(function(){var t;return Is(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),v(!0),[4,r.uploads.destroy(e)];case 1:return n.sent(),[3,4];case 2:return t=n.sent(),console.error(t),[3,4];case 3:return v(!1),[7];case 4:return[2]}}))}))}function C(e){return Cs(this,void 0,void 0,(function(){var t,n;return Is(this,(function(r){switch(r.label){case 0:return"image"!==e.type?[3,2]:[4,P(e.imageId)];case 1:r.sent(),r.label=2;case 2:return t=null===(n=i.svgs)||void 0===n?void 0:n.filter((function(t){return t.id!==e.id})),[4,o.updatePluginParameters(Ts(Ts({},i),{svgs:t}))];case 3:return r.sent(),[4,Ps(o,t)];case 4:return r.sent(),o.notice("Svg deleted successfully!"),[2]}}))}))}function I(e){return Cs(this,void 0,void 0,(function(){var t,n;return Is(this,(function(r){switch(r.label){case 0:return t=null===(n=i.svgs)||void 0===n?void 0:n.map((function(t){return t.id===e.id?Ts(Ts({},t),{filename:e.filename}):t})),[4,o.updatePluginParameters(Ts(Ts({},i),{svgs:t}))];case 1:return r.sent(),o.notice("Svg renamed successfully!"),[2]}}))}))}return E&&(r=function(e){return new Au(e)}({apiToken:E,environment:S})),(0,e.jsx)(T,{ctx:o,children:(0,e.jsxs)("div",{className:"layout",children:[(0,e.jsx)(Es,{value:u,onChangeSvg:s,filename:c,onChangeFilename:f}),(0,e.jsxs)("div",{className:"PageScreen-module__uploadContainer--unBcu",children:[d&&(0,e.jsx)(Io,{}),!d&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(jo,{disabled:!Vu(u),onClick:function(){return function(e){return Cs(this,void 0,void 0,(function(){return Is(this,(function(t){switch(t.label){case 0:return w?[4,k(e)]:[3,2];case 1:case 3:return t.sent(),[2];case 2:return[4,O(e)]}}))}))}(u)},leftIcon:(0,e.jsx)(Ss,{}),children:"Upload raw svg"}),E&&(0,e.jsx)("div",{children:(0,e.jsx)(Vo,{name:"uploadToMedia",id:"uploadToMedia",label:"Upload SVG to the Media library",value:w,onChange:function(e){return _(e)}})})]})]}),(0,e.jsx)("h3",{className:"h2",children:"Uploaded svgs"}),0===(null===(n=i.svgs)||void 0===n?void 0:n.length)&&(0,e.jsx)("p",{children:"Nothing to show (yet)"}),(0,e.jsx)(fs,{svgs:i.svgs,onDelete:y?void 0:C,onShowUpload:function(e){return Cs(this,void 0,void 0,(function(){var t;return Is(this,(function(n){switch(n.label){case 0:return t=null,"image"!==e.type?[3,2]:[4,o.editUpload(e.imageId)];case 1:t=n.sent(),n.label=2;case 2:return t&&t.deleted?[4,C(e)]:[3,4];case 3:n.sent(),n.label=4;case 4:return t&&t.attributes.basename!==e.filename?[4,I(Ts(Ts({},e),{filename:t.attributes.basename}))]:[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},onShowRaw:function(e){return Cs(this,void 0,void 0,(function(){var t;return Is(this,(function(n){switch(n.label){case 0:return t=null,"svg"!==e.type?[3,2]:[4,o.openModal({id:co,title:"Raw details",width:"s",parameters:{rawSvg:e}})];case 1:t=n.sent(),n.label=2;case 2:return t&&t.deleted?[4,C(e)]:[3,4];case 3:n.sent(),n.label=4;case 4:return t&&t.filename!==e.filename?[4,I(Ts(Ts({},e),{filename:t.filename}))]:[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},isLoading:y,showTag:!0})]})})}var Ls=function(){return Ls=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ls.apply(this,arguments)},Ds=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Rs(t){var n=t.ctx,r=n.plugin.attributes.parameters,o=n.parameters,i=(0,b.useState)(o.selectedSvgs||[]),a=i[0],u=i[1],s=(0,b.useState)(o.showAllSvgs||!1),l=s[0],c=s[1];return(0,b.useEffect)((function(){n.setParameters(Ls(Ls({},o),{selectedSvgs:l?[]:a,showAllSvgs:l}))}),[a,l]),(0,e.jsxs)(T,{ctx:n,children:[(0,e.jsx)("h2",{className:"FieldExtensionConfigScreen-module__heading--ZG1IO",children:"Select the svgs that are selectable for the user"}),(0,e.jsx)("div",{className:"FieldExtensionConfigScreen-module__switch--g3jVD",children:(0,e.jsx)(Vo,{name:"showAllSvgs",id:"showAllSvgs",label:"Select all SVGs",hint:"When this is selected you can select all SVGs uploaded in this field",value:l,onChange:c})}),(0,e.jsx)(fs,{svgs:r.svgs,activeSvgs:l?r.svgs:o.selectedSvgs,onClick:function(e){var t;if(null===(t=null==a?void 0:a.map((function(e){return e.id})))||void 0===t?void 0:t.includes(e.id)){var n=null==a?void 0:a.filter((function(t){return t.id!==e.id}));u(n)}else u(Ds(Ds([],a,!0),[e],!1))},disabled:l,showTag:!0})]})}var Fs=o(8156),As=o.n(Fs);function Ms(t){var n=t.ctx,r=String(As()(n.formValues,n.fieldPath)),o=n.plugin.attributes.parameters,i=n.parameters,a=i.showAllSvgs?o.svgs:i.selectedSvgs,u=(0,e.jsx)("p",{children:"No SVG images to show"});return r&&(u=(0,e.jsx)("div",{className:"FieldExtension-module__content--JmNOb",children:(0,e.jsx)(us,{size:"s",image:{id:n.field.id,raw:r,type:"svg"},onDelete:function(){n.setFieldValue(n.fieldPath,"")}})})),!r&&a&&a.length>0&&(u=(0,e.jsx)(fs,{svgs:a,onClick:function(e){n.setFieldValue(n.fieldPath,e.raw)},size:"s"})),(0,e.jsx)(T,{ctx:n,children:u})}const Vs=JSON.parse('{"rI":"_SidebarPanel_4uwco_1","MR":"_SidebarPanel__header_4uwco_5","CI":"_SidebarPanel__header__title_4uwco_30","n5":"_SidebarPanel__header__chevron_4uwco_36","w0":"_SidebarPanel__content_4uwco_42","FT":"_SidebarPanel__content--no-padding_4uwco_47"}');function zs(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))}function Us(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))}function qs(e){var t,n=e.startOpen,r=void 0!==n&&n,o=e.title,i=e.children,a=e.noPadding,u=(0,b.useState)(r),s=u[0],l=u[1];return b.createElement("div",{className:Vs.rI},o&&b.createElement("button",{type:"button",className:Vs.MR,onClick:function(){l(!s)}},b.createElement("div",{className:Vs.CI},o),b.createElement("div",{className:Vs.n5},s?b.createElement(zs,null):b.createElement(Us,null))),s&&b.createElement("div",{className:E()(Vs.w0,(t={},t[Vs.FT]=a,t))},i))}var Hs="RawSvgViewer-module__button--JR2Fm",Bs="RawSvgViewer-module__buttonList--bMN0E",$s="RawSvgViewer-module__deleteButton--DuioO",Gs="RawSvgViewer-module__editing--LVDdB",Ys="RawSvgViewer-module__editingText--wLDy_",Ws="RawSvgViewer-module__header--_aaee",Qs="RawSvgViewer-module__input--i7vSo",Ks="RawSvgViewer-module__rawCode--hMDfX",Xs="RawSvgViewer-module__svgLogo--ROrY7",Js="RawSvgViewer-module__title--R0gYS",Zs=function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zs.apply(this,arguments)};function el(t){var n,r=t.svg,o=t.onRename,i=t.onDelete,a=(0,b.useState)(!1),u=a[0],s=a[1],l=(0,b.useState)(r.filename),c=l[0],f=l[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:E()(Ws,(n={},n[Gs]=u,n)),children:[(0,e.jsx)("div",{className:Xs,dangerouslySetInnerHTML:{__html:r.raw}}),(0,e.jsxs)("div",{children:[u?(0,e.jsx)("input",{className:Qs,value:c,onChange:function(e){return f(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&o&&o(Zs(Zs({},r),{filename:c}))}}):(0,e.jsx)("h2",{className:E()("h3",Js),children:c}),(0,e.jsx)("div",{className:Bs,children:u?(0,e.jsx)("p",{className:Ys,children:"Press Enter to confirm"}):(0,e.jsxs)(e.Fragment,{children:[o&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{className:Hs,type:"button",onClick:function(){s(!0)},children:(0,e.jsx)("span",{children:"Rename"})}),(0,e.jsx)("span",{children:"•"})]}),i&&(0,e.jsx)("button",{className:E()(Hs,$s),type:"button",onClick:function(){return i(r)},children:(0,e.jsx)("span",{children:"Delete"})})]})})]})]}),(0,e.jsx)(qs,{title:"Raw data",startOpen:!0,children:(0,e.jsx)("pre",{className:Ks,children:r.raw})})]})}var tl=function(){return tl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tl.apply(this,arguments)};function nl(t){var n=t.ctx,r=n.parameters;return(0,e.jsx)(T,{ctx:n,children:r.rawSvg?(0,e.jsx)(el,{svg:r.rawSvg,onDelete:function(e){n.resolve(tl(tl({},e),{deleted:!0}))},onRename:function(e){n.resolve(e)}}):(0,e.jsx)("p",{children:"Nothing to show here"})})}var rl=o(5338),ol=document.getElementById("root"),il=(0,rl.H)(ol);function al(t){return il.render((0,e.jsx)(b.StrictMode,{children:t}))}!function(e){var t,r,o,b;void 0===e&&(e={}),t=this,r=void 0,b=function(){var t,r,o,b,w,_,E,S,x,O,k,P,T,C,I,N,j,L,D,R,F,A,M;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(V){switch(V.label){case 0:return t=e.assetSources,r=e.mainNavigationTabs,o=e.settingsAreaSidebarItemGroups,b=e.contentAreaSidebarItems,w=e.manualFieldExtensions,_=e.itemFormSidebarPanels,E=e.itemFormSidebars,S=e.itemFormOutlets,x=null,O=null,k=n()({methods:{sdkVersion:function(){return"0.2.0"},implementedHooks:function(){return Object.fromEntries(Object.entries(e).map((function(e){var t=e[0],n=e[1];return"function"==typeof n?[t,!0]:[t,n]})))},assetSources:t,mainNavigationTabs:r,settingsAreaSidebarItemGroups:o,contentAreaSidebarItems:b,manualFieldExtensions:w,itemFormSidebarPanels:_,itemFormSidebars:E,itemFormOutlets:S,overrideFieldExtensions:v(e.overrideFieldExtensions),customMarksForStructuredTextField:v(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:v(e.customBlockStylesForStructuredTextField),onChange:function(e){x&&x(e)},callMethodMergingBootCtx:function(e,t,n){return O?O(e,t,n):null}}}),[4,k.promise];case 1:return[4,(P=V.sent()).getSettings()];case 2:return T=V.sent(),i(P,T)&&(C=T,x=function(e){C=e},O=function(t,n,r){var o;if(t in e)return(o=e)[t].apply(o,y(y([],n,!1),[m(m(m({},P),C),r)],!1))},e.onBoot&&e.onBoot(m(m({},P),C))),a(P,T)&&(x=M=function(t){e.renderPage&&e.renderPage(t.pageId,m(m({},P),t))},M(T)),u(P,T)&&(I=g(P),x=M=function(t){e.renderConfigScreen&&e.renderConfigScreen(m(m(m({},P),t),I))},M(T)),s(P,T)&&(N=g(P),x=M=function(t){e.renderModal&&e.renderModal(t.modalId,m(m(m({},P),t),N))},M(T)),h(P,T)&&(j=g(P),x=M=function(t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,m(m(m({},P),t),j))},M(T)),l(P,T)&&(L=g(P),x=M=function(t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,m(m(m({},P),t),L))},M(T)),c(P,T)&&(D=g(P),x=M=function(t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,m(m(m({},P),t),D))},M(T)),f(P,T)&&(R=g(P),x=M=function(t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,m(m(m({},P),t),R))},M(T)),p(P,T)&&(F=g(P),x=M=function(t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,m(m(m({},P),t),F))},M(T)),d(P,T)&&(A=g(P),x=M=function(t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,m(m(m({},P),t),A))},M(T)),[2]}}))},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{u(b.next(e))}catch(e){n(e)}}function a(e){try{u(b.throw(e))}catch(e){n(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}u((b=b.apply(t,r||[])).next())}))}({onBoot:function(e){return t=this,n=void 0,o=function(){var t;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(n){switch(n.label){case 0:return t=e.plugin.attributes.parameters,[4,Ps(e,t.svgs)];case 1:return n.sent(),[2]}}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function u(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o},renderConfigScreen:function(t){return al((0,e.jsx)(wo,{ctx:t}))},mainNavigationTabs:function(e){var t,n,r,o=e.plugin.attributes.parameters;if(!e.currentRole.meta.final_permissions.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)!==ro.MainNavigationTabs)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||ho[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||vo[0].value];return[{label:uo,icon:lo,placement:i,pointsTo:{pageId:"".concat(so,"--").concat(e.plugin.id)}}]},contentAreaSidebarItems:function(e){var t,n,r,o=e.plugin.attributes.parameters;if(!e.currentRole.meta.final_permissions.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)!==ro.ContentAreaSidebarItems)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||ho[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||mo[0].value];return[{label:uo,icon:lo,placement:i,pointsTo:{pageId:"".concat(so,"--").concat(e.plugin.id)}}]},settingsAreaSidebarItemGroups:function(e){var t,n,r,o=e.plugin.attributes.parameters;return e.currentRole.meta.final_permissions.can_edit_schema||(null===(t=o.pageType)||void 0===t?void 0:t.value)===ro.SettingsAreaSidebarItemGroups?[{label:"Plugin",placement:[(null===(n=o.placement)||void 0===n?void 0:n.value)||ho[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||yo[0].value],items:[{label:uo,icon:lo,pointsTo:{pageId:"".concat(so,"--").concat(e.plugin.id)}}]}]:[]},renderPage:function(t,n){if(t==="".concat(so,"--").concat(n.plugin.id))return al((0,e.jsx)(js,{ctx:n}))},renderModal:function(t,n){if(t===co)return al((0,e.jsx)(nl,{ctx:n}))},manualFieldExtensions:function(){return[{id:"svg-selector",name:"SVG Selector",type:"editor",fieldTypes:["string","text"],configurable:!0}]},renderManualFieldExtensionConfigScreen:function(t,n){return al((0,e.jsx)(Rs,{ctx:n}))},renderFieldExtension:function(t,n){return al((0,e.jsx)(Ms,{ctx:n}))}})})()})();
|
|
2
|
+
(()=>{var e,t,n={7688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._meta=void 0,this._task=e,this._scheduler=t}withDescriptor(e){return this._descriptor=e,this}withMutex(e){return this._mutex=e,this}withMeta(e){return this._meta=e,this}runBeforeExecuting(e){return this._onPreExecute=e,this}handleCollisions(e){return this._onTaskCollision=e,this}execute(e){return this._scheduler.enqueue({priority:e,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}}},2556:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCollisionStrategy=void 0,(n=t.TaskCollisionStrategy||(t.TaskCollisionStrategy={}))[n.DEFAULT=0]="DEFAULT",n[n.KEEP_THIS=1]="KEEP_THIS",n[n.KEEP_OTHER=2]="KEEP_OTHER",n[n.KEEP_BOTH=3]="KEEP_BOTH",n[n.RESOLVE_THIS=4]="RESOLVE_THIS",n[n.RESOLVE_OTHER=5]="RESOLVE_OTHER"},7026:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(2556),a=o(n(8918)),u=n(6846),s=o(n(7688));var l;function c(e,t){for(let n of e.listeners)n.reject(t)}!function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"}(l||(l={})),t.default=class{constructor(e,t={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=e,this._samePriorityMutex=!!t.samePriorityMutex,this._mutexStrategy=t.mutexStrategy||u.mutexEquality,t.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(e){return new Promise(((t,n)=>{"function"==typeof e&&(e={priority:0,execute:e});const r=this._checkMutexes(e,t,n);r.task?this._addTask(r.task):r.canceled&&n(this.createCanceledError())}))}prepare(e){return new s.default(e,this)}_addTask(e){this._queue.push(e),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce(((e,t)=>t.state===l.EXECUTING?e+1:e),0)}createCanceledError(){return new a.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find((e=>e.state===l.PENDING))}_isIdle(){return 0===this._queue.length||!this._queue.find((e=>e.state!==l.TERMINATED))}_removeTaskAt(e){this._queue.splice(e,1)}_executeTask(e){return r(this,void 0,void 0,(function*(){try{return e.task.onPreExecute&&e.task.onPreExecute(),yield e.task.execute()}catch(e){throw e}finally{e.state=l.TERMINATED;let t=this._queue.indexOf(e);this._removeTaskAt(t),this._executeNextTasks()}}))}_executeNextTasks(){let e=this.executingTasks;if(e>=this._maxConcurrentTasks)return;let t=this._maxConcurrentTasks-e;for(let e=0;e<t;e++){const e=this._findFirstPendingTask();if(!e)return void(this._isIdle()&&this._switchToIdle());e.state=l.EXECUTING,this._executeTask(e).then((t=>{for(const{resolve:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while resolving listener",e)}})).catch((t=>{for(const{reject:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while rejecting listener",e)}}))}}_switchToIdle(){this._isExecuting=!1;const e=this._idleListeners;this._idleListeners=[];for(const{resolve:t}of e)try{t()}catch(e){}}waitForIdle(){return this._isExecuting?new Promise(((e,t)=>{this._idleListeners.push({resolve:e,reject:t})})):Promise.resolve()}_applyPriorities(){this._queue.sort(((e,t)=>t.task.priority-e.task.priority))}_checkMutexes(e,t,n){for(let r=0;r<this._queue.length;r++){let o,a,u=this._queue[r];if(u.state!==l.TERMINATED&&(!this._samePriorityMutex||u.task.priority==e.priority)&&u.task.mutex&&e.mutex&&this._mutexStrategy(u.task.mutex,e.mutex)){if(u.task.onTaskCollision){if(o=u.task.onTaskCollision(e),o===i.TaskCollisionStrategy.KEEP_OTHER&&u.state!==l.EXECUTING){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(o===i.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(o===i.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}};if(o===i.TaskCollisionStrategy.RESOLVE_THIS)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1}}if(e.onTaskCollision){if(a=e.onTaskCollision(u.task),a===i.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(a===i.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(a===i.TaskCollisionStrategy.RESOLVE_OTHER)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1};if(a===i.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}}}if(o!==i.TaskCollisionStrategy.KEEP_BOTH||a!==i.TaskCollisionStrategy.KEEP_BOTH)return{canceled:!0}}}return{canceled:!1,task:{task:e,state:l.PENDING,listeners:[{resolve:t,reject:n}]}}}}},8918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._code=e,this._message=t}get code(){return this._code}get message(){return this._message}}},6846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=void 0,t.mutexBitwiseAnd=function(e,t){return!!(e&t)},t.mutexEquality=function(e,t){return e===t}},3271:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=t.SchedulerError=t.TaskCollisionStrategy=t.Scheduler=void 0;const o=r(n(7026));t.Scheduler=o.default;const i=n(2556);Object.defineProperty(t,"TaskCollisionStrategy",{enumerable:!0,get:function(){return i.TaskCollisionStrategy}});const a=r(n(8918));t.SchedulerError=a.default;const u=n(6846);Object.defineProperty(t,"mutexBitwiseAnd",{enumerable:!0,get:function(){return u.mutexBitwiseAnd}}),Object.defineProperty(t,"mutexEquality",{enumerable:!0,get:function(){return u.mutexEquality}})},6454:(e,t,n)=>{"use strict";const r=n(3918),o=n(2923),i=n(8904);e.exports={XMLParser:o,XMLValidator:r,XMLBuilder:i}},5334:(e,t)=>{"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const r=Object.keys(t),o=r.length;for(let i=0;i<o;i++)e[r[i]]="strict"===n?[t[r[i]]]:t[r[i]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==o.exec(e))},t.getAllMatches=function(e,t){const n=[];let r=t.exec(e);for(;r;){const o=[];o.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let e=0;e<i;e++)o.push(r[e]);n.push(o),r=t.exec(e)}return n},t.nameRegexp=r},3918:(e,t,n)=>{"use strict";const r=n(5334),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function a(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const r=e.substr(n,t-n);if(t>5&&"xml"===r)return h("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function u(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},o,t);const n=[];let s=!1,l=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=a(e,o),o.err)return o}else{if("<"!==e[o]){if(i(e[o]))continue;return h("InvalidChar","char '"+e[o]+"' is not expected.",y(e,o))}{let m=o;if(o++,"!"===e[o]){o=u(e,o);continue}{let v=!1;"/"===e[o]&&(v=!0,o++);let g="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)g+=e[o];if(g=g.trim(),"/"===g[g.length-1]&&(g=g.substring(0,g.length-1),o--),f=g,!r.isName(f)){let t;return t=0===g.trim().length?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",h("InvalidTag",t,y(e,o))}const b=c(e,o);if(!1===b)return h("InvalidAttr","Attributes for '"+g+"' have open quote.",y(e,o));let w=b.value;if(o=b.index,"/"===w[w.length-1]){const n=o-w.length;w=w.substring(0,w.length-1);const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,n+r.err.line));s=!0}else if(v){if(!b.tagClosed)return h("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",y(e,o));if(w.trim().length>0)return h("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",y(e,m));if(0===n.length)return h("InvalidTag","Closing tag '"+g+"' has not been opened.",y(e,m));{const t=n.pop();if(g!==t.tagName){let n=y(e,t.tagStartPos);return h("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+g+"'.",y(e,m))}0==n.length&&(l=!0)}}else{const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,o-w.length+r.err.line));if(!0===l)return h("InvalidXml","Multiple possible root nodes found.",y(e,o));-1!==t.unpairedTags.indexOf(g)||n.push({tagName:g,tagStartPos:m}),s=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=u(e,o);continue}if("?"!==e[o+1])break;if(o=a(e,++o),o.err)return o}else if("&"===e[o]){const t=d(e,o);if(-1==t)return h("InvalidChar","char '&' is not expected.",y(e,o));o=t}else if(!0===l&&!i(e[o]))return h("InvalidXml","Extra text at the end",y(e,o));"<"===e[o]&&o--}}}var f;return s?1==n.length?h("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",y(e,n[0].tagStartPos)):!(n.length>0)||h("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};const s='"',l="'";function c(e,t){let n="",r="",o=!1;for(;t<e.length;t++){if(e[t]===s||e[t]===l)""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){o=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:o}}const f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){const n=r.getAllMatches(e,f),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return h("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return h("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const r=n[e][2];if(!m(r))return h("InvalidAttr","Attribute '"+r+"' is an invalid name.",v(n[e]));if(o.hasOwnProperty(r))return h("InvalidAttr","Attribute '"+r+"' is repeated.",v(n[e]));o[r]=1}return!0}function d(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function h(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return r.isName(e)}function y(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}},8904:(e,t,n)=>{"use strict";const r=n(2788),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},o,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=s),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,n){const r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function u(e){return this.options.indentBy.repeat(e)}function s(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},i.prototype.j2x=function(e,t){let n="",r="";for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))if(void 0===e[o])this.isAttribute(o)&&(r+="");else if(null===e[o])this.isAttribute(o)?r+="":"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){const i=this.isAttribute(o);if(i)n+=this.buildAttrPairStr(i,""+e[o]);else if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){const n=e[o].length;let i="";for(let a=0;a<n;a++){const n=e[o][a];void 0===n||(null===n?"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:"object"==typeof n?this.options.oneListGroup?i+=this.j2x(n,t+1).val:i+=this.processTextOrObjNode(n,o,t):i+=this.buildTextValNode(n,o,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,o,"",t)),r+=i}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const t=Object.keys(e[o]),r=t.length;for(let i=0;i<r;i++)n+=this.buildAttrPairStr(t[i],""+e[o][t[i]])}else r+=this.processTextOrObjNode(e[o],o,t);return{attrStr:n,val:r}},i.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,n,r){if(""===e)return"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+n+i+this.tagEndChar+e+this.indentate(r)+o:this.indentate(r)+"<"+t+n+i+">"+e+o}},i.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,n,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+o+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},e.exports=i},2788:e=>{function t(e,a,u,s){let l="",c=!1;for(let f=0;f<e.length;f++){const p=e[f],d=n(p);if(void 0===d)continue;let h="";if(h=0===u.length?d:`${u}.${d}`,d===a.textNodeName){let e=p[d];o(h,a)||(e=a.tagValueProcessor(d,e),e=i(e,a)),c&&(l+=s),l+=e,c=!1;continue}if(d===a.cdataPropName){c&&(l+=s),l+=`<![CDATA[${p[d][0][a.textNodeName]}]]>`,c=!1;continue}if(d===a.commentPropName){l+=s+`\x3c!--${p[d][0][a.textNodeName]}--\x3e`,c=!0;continue}if("?"===d[0]){const e=r(p[":@"],a),t="?xml"===d?"":s;let n=p[d][0][a.textNodeName];n=0!==n.length?" "+n:"",l+=t+`<${d}${n}${e}?>`,c=!0;continue}let m=s;""!==m&&(m+=a.indentBy);const y=s+`<${d}${r(p[":@"],a)}`,v=t(p[d],a,h,m);-1!==a.unpairedTags.indexOf(d)?a.suppressUnpairedNode?l+=y+">":l+=y+"/>":v&&0!==v.length||!a.suppressEmptyNode?v&&v.endsWith(">")?l+=y+`>${v}${s}</${d}>`:(l+=y+">",v&&""!==s&&(v.includes("/>")||v.includes("</"))?l+=s+a.indentBy+v+s:l+=v,l+=`</${d}>`):l+=y+"/>",c=!0}return l}function n(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(e.hasOwnProperty(r)&&":@"!==r)return r}}function r(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!e.hasOwnProperty(r))continue;let o=t.attributeValueProcessor(r,e[r]);o=i(o,t),!0===o&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function o(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+n)return!0;return!1}function i(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const r=t.entities[n];e=e.replace(r.regex,r.val)}return e}e.exports=function(e,n){let r="";return n.format&&n.indentBy.length>0&&(r="\n"),t(e,n,"",r)}},9400:(e,t,n)=>{const r=n(5334);function o(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const r=e[t++];let o="";for(;t<e.length&&e[t]!==r;t++)o+=e[t];return[n,o,t]}function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function u(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function s(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function l(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function c(e){if(r.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let r=1,f=!1,p=!1,d="";for(;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,r--):r--,0===r)break}else"["===e[t]?f=!0:d+=e[t];else{if(f&&a(e,t))t+=7,[entityName,val,t]=o(e,t+1),-1===val.indexOf("&")&&(n[c(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(f&&u(e,t))t+=8;else if(f&&s(e,t))t+=8;else if(f&&l(e,t))t+=9;else{if(!i)throw new Error("Invalid DOCTYPE");p=!0}r++,d=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}},460:(e,t)=>{const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},7680:(e,t,n)=>{"use strict";const r=n(5334),o=n(3832),i=n(9400),a=n(7983);function u(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function s(e,t,n,r,o,i,a){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,o,i);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?w(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function l(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(e,t,n){if(!this.options.ignoreAttributes&&"string"==typeof e){const n=r.getAllMatches(e,c),o=n.length,i={};for(let e=0;e<o;e++){const r=this.resolveNameSpace(n[e][1]);let o=n[e][4],a=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==o){this.options.trimValues&&(o=o.trim()),o=this.replaceEntitiesValue(o);const e=this.options.attributeValueProcessor(r,o,t);i[a]=null==e?o:typeof e!=typeof o||e!==o?e:w(o,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[a]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=i,e}return i}}const p=function(e){e=e.replace(/\r\n?/g,"\n");const t=new o("!xml");let n=t,r="",a="";for(let u=0;u<e.length;u++)if("<"===e[u])if("/"===e[u+1]){const t=v(e,">",u,"Closing Tag is not closed.");let o=e.substring(u+2,t).trim();if(this.options.removeNSPrefix){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}this.options.transformTagName&&(o=this.options.transformTagName(o)),n&&(r=this.saveTextToParentTag(r,n,a));const i=a.substring(a.lastIndexOf(".")+1);if(o&&-1!==this.options.unpairedTags.indexOf(o))throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);let s=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(s=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):s=a.lastIndexOf("."),a=a.substring(0,s),n=this.tagsNodeStack.pop(),r="",u=t}else if("?"===e[u+1]){let t=g(e,u,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new o(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(n,e,a)}u=t.closeIndex+1}else if("!--"===e.substr(u+1,3)){const t=v(e,"--\x3e",u+4,"Comment is not closed.");if(this.options.commentPropName){const o=e.substring(u+4,t-2);r=this.saveTextToParentTag(r,n,a),n.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}u=t}else if("!D"===e.substr(u+1,2)){const t=i(e,u);this.docTypeEntities=t.entities,u=t.i}else if("!["===e.substr(u+1,2)){const t=v(e,"]]>",u,"CDATA is not closed.")-2,o=e.substring(u+9,t);r=this.saveTextToParentTag(r,n,a);let i=this.parseTextData(o,n.tagname,a,!0,!1,!0,!0);null==i&&(i=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]):n.add(this.options.textNodeName,i),u=t+2}else{let i=g(e,u,this.options.removeNSPrefix),s=i.tagName;const l=i.rawTagName;let c=i.tagExp,f=i.attrExpPresent,p=i.closeIndex;this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,a,!1));const d=n;if(d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(n=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),s!==t.tagname&&(a+=a?"."+s:s),this.isItStopNode(this.options.stopNodes,a,s)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===s[s.length-1]?(s=s.substr(0,s.length-1),a=a.substr(0,a.length-1),c=s):c=c.substr(0,c.length-1),u=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(s))u=i.closeIndex;else{const n=this.readStopNodeData(e,l,p+1);if(!n)throw new Error(`Unexpected end of ${l}`);u=n.i,t=n.tagContent}const r=new o(s);s!==c&&f&&(r[":@"]=this.buildAttributesMap(c,a,s)),t&&(t=this.parseTextData(t,s,a,!0,f,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,a)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===s[s.length-1]?(s=s.substr(0,s.length-1),a=a.substr(0,a.length-1),c=s):c=c.substr(0,c.length-1),this.options.transformTagName&&(s=this.options.transformTagName(s));const e=new o(s);s!==c&&f&&(e[":@"]=this.buildAttributesMap(c,a,s)),this.addChild(n,e,a),a=a.substr(0,a.lastIndexOf("."))}else{const e=new o(s);this.tagsNodeStack.push(n),s!==c&&f&&(e[":@"]=this.buildAttributesMap(c,a,s)),this.addChild(n,e,a),n=e}r="",u=p}}else r+=e[u];return t.child};function d(e,t,n){const r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t))}const h=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function y(e,t,n){const r="*."+n;for(const n in e){const o=e[n];if(r===o||t===o)return!0}return!1}function v(e,t,n,r){const o=e.indexOf(t,n);if(-1===o)throw new Error(r);return o+t.length-1}function g(e,t,n,r=">"){const o=function(e,t,n=">"){let r,o="";for(let i=t;i<e.length;i++){let t=e[i];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:o,index:i};if(e[i+1]===n[1])return{data:o,index:i}}else"\t"===t&&(t=" ");o+=t}}(e,t+1,r);if(!o)return;let i=o.data;const a=o.index,u=i.search(/\s/);let s=i,l=!0;-1!==u&&(s=i.substring(0,u),i=i.substring(u+1).trimStart());const c=s;if(n){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1),l=s!==o.data.substr(e+1))}return{tagName:s,tagExp:i,closeIndex:a,attrExpPresent:l,rawTagName:c}}function b(e,t,n){const r=n;let o=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=v(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(o--,0===o))return{tagContent:e.substring(r,n),i};n=i}else if("?"===e[n+1])n=v(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=v(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=v(e,"]]>",n,"StopNode is not closed.")-2;else{const r=g(e,n,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&o++,n=r.closeIndex)}}function w(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=s,this.resolveNameSpace=l,this.buildAttributesMap=f,this.isItStopNode=y,this.replaceEntitiesValue=h,this.readStopNodeData=b,this.saveTextToParentTag=m,this.addChild=d}}},2923:(e,t,n)=>{const{buildOptions:r}=n(460),o=n(7680),{prettify:i}=n(5629),a=n(3918);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=a.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new o(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:i(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},5629:(e,t)=>{"use strict";function n(e,t,a){let u;const s={};for(let l=0;l<e.length;l++){const c=e[l],f=r(c);let p="";if(p=void 0===a?f:a+"."+f,f===t.textNodeName)void 0===u?u=c[f]:u+=""+c[f];else{if(void 0===f)continue;if(c[f]){let e=n(c[f],t,p);const r=i(e,t);c[":@"]?o(e,c[":@"],p,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==s[f]&&s.hasOwnProperty(f)?(Array.isArray(s[f])||(s[f]=[s[f]]),s[f].push(e)):t.isArray(f,p,r)?s[f]=[e]:s[f]=e}}}return"string"==typeof u?u.length>0&&(s[t.textNodeName]=u):void 0!==u&&(s[t.textNodeName]=u),s}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function o(e,t,n,r){if(t){const o=Object.keys(t),i=o.length;for(let a=0;a<i;a++){const i=o[a];r.isArray(i,n+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function i(e,t){const{textNodeName:n}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}t.prettify=function(e,t){return n(e,t)}},3832:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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},u={};function s(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=s(t),m=s(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||u&&u[v])){var g=p(n,v);try{l(t,v,g)}catch(e){}}}}return t}},1549:(e,t,n)=>{var r=n(2032),o=n(3862),i=n(6721),a=n(2749),u=n(5749);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},79:(e,t,n)=>{var r=n(3702),o=n(80),i=n(4739),a=n(8655),u=n(1175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},3661:(e,t,n)=>{var r=n(3040),o=n(7670),i=n(289),a=n(4509),u=n(2949);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},2552:(e,t,n)=>{var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),i=n(3805),a=n(7473),u=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,f=l.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:u).test(a(e))}},7556:(e,t,n)=>{var r=n(1873),o=n(4932),i=n(6449),a=n(4394),u=r?r.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1769:(e,t,n)=>{var r=n(6449),o=n(8586),i=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8586:(e,t,n)=>{var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,n)=>{var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1802:(e,t,n)=>{var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},6449:e=>{var t=Array.isArray;e.exports=t},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},104:(e,t,n)=>{var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},4482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5884),o=n(5363);t.default=(e,t,n)=>{const i=e.localName,a=e.local,u=e.remote,s=e.originForSending,l=e.originForReceiving;let c=!1;n(`${i}: Connecting call receiver`);const f=e=>{if(e.source!==u||e.data.penpal!==r.CALL)return;if(e.origin!==l)return void n(`${i} received message from origin ${e.origin} which did not match expected origin ${l}`);const a=e.data,f=a.methodName,p=a.args,d=a.id;n(`${i}: Received ${f}() call`);const h=e=>t=>{if(n(`${i}: Sending ${f}() reply`),c)return void n(`${i}: Unable to send ${f}() reply due to destroyed connection`);const a={penpal:r.REPLY,id:d,resolution:e,returnValue:t};e===r.REJECTED&&t instanceof Error&&(a.returnValue=(0,o.serializeError)(t),a.returnValueIsError=!0);try{u.postMessage(a,s)}catch(e){throw e.name===r.DATA_CLONE_ERROR&&u.postMessage({penpal:r.REPLY,id:d,resolution:r.REJECTED,returnValue:(0,o.serializeError)(e),returnValueIsError:!0},s),e}};new Promise((e=>e(t[f].apply(t,p)))).then(h(r.FULFILLED),h(r.REJECTED))};return a.addEventListener(r.MESSAGE,f),()=>{c=!0,a.removeEventListener(r.MESSAGE,f)}},e.exports=t.default},2502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(5884),i=n(8005),a=(r=n(1043))&&r.__esModule?r:{default:r},u=n(5363);t.default=(e,t,n,r,s)=>{const l=t.localName,c=t.local,f=t.remote,p=t.originForSending,d=t.originForReceiving;let h=!1;return s(`${l}: Connecting call sender`),n.reduce(((e,t)=>(e[t]=(e=>function(){for(var t=arguments.length,n=new Array(t),m=0;m<t;m++)n[m]=arguments[m];let y;s(`${l}: Sending ${e}() call`);try{f.closed&&(y=!0)}catch(e){y=!0}if(y&&r(),h){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=i.ERR_CONNECTION_DESTROYED,t}return new Promise(((t,r)=>{const i=(0,a.default)(),h=n=>{if(n.source!==f||n.data.penpal!==o.REPLY||n.data.id!==i)return;if(n.origin!==d)return void s(`${l} received message from origin ${n.origin} which did not match expected origin ${d}`);s(`${l}: Received ${e}() reply`),c.removeEventListener(o.MESSAGE,h);let a=n.data.returnValue;n.data.returnValueIsError&&(a=(0,u.deserializeError)(a)),(n.data.resolution===o.FULFILLED?t:r)(a)};c.addEventListener(o.MESSAGE,h),f.postMessage({penpal:o.CALL,id:i,methodName:e,args:n},p)}))})(t),e)),e),()=>{h=!0}},e.exports=t.default},7414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5884),o=n(8005),i=l(n(686)),a=l(n(4482)),u=l(n(2502)),s=l(n(6913));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentOrigin,n=void 0===t?"*":t,l=e.methods,c=void 0===l?{}:l,f=e.timeout,p=e.debug;const d=(0,s.default)(p);if(window===window.top){const e=new Error("connectToParent() must be called within an iframe");throw e.code=o.ERR_NOT_IN_IFRAME,e}const h=(0,i.default)(),m=h.destroy,y=h.onDestroy,v=window,g=v.parent;return{promise:new Promise(((e,t)=>{let i;void 0!==f&&(i=setTimeout((()=>{const e=new Error(`Connection to parent timed out after ${f}ms`);e.code=o.ERR_CONNECTION_TIMEOUT,t(e),m()}),f));const s=t=>{try{clearTimeout()}catch(e){return}if(t.source!==g||t.data.penpal!==r.HANDSHAKE_REPLY)return;if("*"!==n&&n!==t.origin)return void d(`Child received handshake reply from origin ${t.origin} which did not match expected origin ${n}`);d("Child: Received handshake reply"),v.removeEventListener(r.MESSAGE,s);const o={localName:"Child",local:v,remote:g,originForSending:"null"===t.origin?"*":t.origin,originForReceiving:t.origin},l={},f=(0,a.default)(o,c,d);y(f);const p=(0,u.default)(l,o,t.data.methodNames,m,d);y(p),clearTimeout(i),e(l)};v.addEventListener(r.MESSAGE,s),y((()=>{v.removeEventListener(r.MESSAGE,s);const e=new Error("Connection destroyed");e.code=o.ERR_CONNECTION_DESTROYED,t(e)})),d("Child: Sending handshake"),g.postMessage({penpal:r.HANDSHAKE,methodNames:Object.keys(c)},n)})),destroy:m}},e.exports=t.default},5884:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DATA_CLONE_ERROR=t.MESSAGE=t.REJECTED=t.FULFILLED=t.REPLY=t.CALL=t.HANDSHAKE_REPLY=t.HANDSHAKE=void 0,t.HANDSHAKE="handshake",t.HANDSHAKE_REPLY="handshake-reply",t.CALL="call",t.REPLY="reply",t.FULFILLED="fulfilled",t.REJECTED="rejected",t.MESSAGE="message",t.DATA_CLONE_ERROR="DataCloneError"},686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=()=>{const e=[];let t=!1;return{destroy(){t=!0,e.forEach((e=>{e()}))},onDestroy(n){t?n():e.push(n)}}},e.exports=t.default},6913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=e=>function(){if(e){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.log("[Penpal]",...n)}},e.exports=t.default},8005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERR_NO_IFRAME_SRC=t.ERR_NOT_IN_IFRAME=t.ERR_CONNECTION_TIMEOUT=t.ERR_CONNECTION_DESTROYED=void 0,t.ERR_CONNECTION_DESTROYED="ConnectionDestroyed",t.ERR_CONNECTION_TIMEOUT="ConnectionTimeout",t.ERR_NOT_IN_IFRAME="NotInIframe",t.ERR_NO_IFRAME_SRC="NoIframeSrc"},5363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeError=t.serializeError=void 0,t.serializeError=e=>({name:e.name,message:e.message,stack:e.stack}),t.deserializeError=e=>{const t=new Error;return Object.keys(e).forEach((n=>t[n]=e[n])),t}},1043:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=0;t.default=()=>++n,e.exports=t.default},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,u={};function s(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(d,e)&&(p.test(e)?h[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var F,A=Object.assign;function M(e){if(void 0===F)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var V=!1;function z(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=u);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function U(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case O:return"Profiler";case x:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:B(n)}}function ie(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ve=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Se=null,xe=null;function Oe(e){if(e=wo(e)){if("function"!=typeof Ee)throw Error(i(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function ke(e){Se?xe?xe.push(e):xe=[e]:Se=e}function Pe(){if(Se){var e=Se,t=xe;if(xe=Se=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Te(e,t){return e(t)}function Ce(){}var Ie=!1;function Ne(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Te(e,t,n)}finally{Ie=!1,(null!==Se||null!==xe)&&(Ce(),Pe())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=Eo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Le=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Le=!1}function Re(e,t,n,r,o,i,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Fe=!1,Ae=null,Me=!1,Ve=null,ze={onError:function(e){Fe=!0,Ae=e}};function Ue(e,t,n,r,o,i,a,u,s){Fe=!1,Ae=null,Re.apply(ze,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Be(e){if(qe(e)!==e)throw Error(i(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Be(o),e;if(a===r)return Be(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,s=o.child;s;){if(s===n){u=!0,n=o,r=a;break}if(s===r){u=!0,r=o,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=o;break}if(s===r){u=!0,r=a,n=o;break}s=s.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,We=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ut(e)/st|0)|0},ut=Math.log,st=Math.LN2,lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var u=a&~o;0!==u?r=ft(u):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,Et,St,xt,Ot,kt=!1,Pt=[],Tt=null,Ct=null,It=null,Nt=new Map,jt=new Map,Lt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function Ft(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&Et(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ot(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Et(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Vt(e,t,n){Mt(e)&&n.delete(t)}function zt(){kt=!1,null!==Tt&&Mt(Tt)&&(Tt=null),null!==Ct&&Mt(Ct)&&(Ct=null),null!==It&&Mt(It)&&(It=null),Nt.forEach(Vt),jt.forEach(Vt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Ct&&Ut(Ct,e),null!==It&&Ut(It,e),Nt.forEach(t),jt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)At(n),null===n.blockedOn&&Lt.shift()}var Ht=w.ReactCurrentBatchConfig,Bt=!0;function $t(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Gt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Yt(e,t,n,r){if(Bt){var o=Qt(e,t,n,r);if(null===o)Br(e,t,r,Wt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Ft(Tt,e,t,n,r,o),!0;case"dragenter":return Ct=Ft(Ct,e,t,n,r,o),!0;case"mouseover":return It=Ft(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,Ft(Nt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,jt.set(i,Ft(jt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&_t(i),null===(i=Qt(e,t,n,r))&&Br(e,t,r,Wt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Wt=null;function Qt(e,t,n,r){if(Wt=null,null!==(e=bo(e=_e(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,un,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),fn=A({},ln,{view:0,detail:0}),pn=on(fn),dn=A({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,un=e.screenY-sn.screenY):un=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:un}}),hn=on(dn),mn=on(A({},dn,{dataTransfer:0})),yn=on(A({},fn,{relatedTarget:0})),vn=on(A({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=A({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(A({},ln,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function On(){return xn}var kn=A({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(kn),Tn=on(A({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=on(A({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),In=on(A({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=A({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(Nn),Ln=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Rn=null;c&&"documentMode"in document&&(Rn=document.documentMode);var Fn=c&&"TextEvent"in window&&!Rn,An=c&&(!Dn||Rn&&8<Rn&&11>=Rn),Mn=String.fromCharCode(32),Vn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){ke(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function Wn(e){Mr(e,0)}function Qn(e){if(Y(_o(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Yn=Gn=null)}function nr(e){if("value"===e.propertyName&&Qn(Yn)){var t=[];$n(t,Yn,e,_e(e)),Ne(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Yn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!ur(e[o],t[o]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==W(r)||(r="selectionStart"in(r=yr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Sr={},xr={};function Or(e){if(Sr[e])return Sr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return Sr[e]=n[t];return e}c&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var kr=Or("animationend"),Pr=Or("animationiteration"),Tr=Or("animationstart"),Cr=Or("transitionend"),Ir=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Ir.set(e,t),s(t,[e])}for(var Lr=0;Lr<Nr.length;Lr++){var Dr=Nr[Lr];jr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}jr(kr,"onAnimationEnd"),jr(Pr,"onAnimationIteration"),jr(Tr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Cr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,u,s,l){if(Ue.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var c=Ae;Fe=!1,Ae=null,Me||(Me=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;Ar(o,u,l),i=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;Ar(o,u,l),i=s}}}if(Me)throw e=Ve,Me=!1,Ve=null,e}function Vr(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Kt(t)){case 1:var o=$t;break;case 4:o=Gt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=bo(u)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}u=u.parentNode}}r=r.return}Ne((function(){var r=i,o=_e(n),a=[];e:{var u=Ir.get(e);if(void 0!==u){var s=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":l="focus",s=yn;break;case"focusout":l="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Cn;break;case kr:case Pr:case Tr:s=vn;break;case Cr:s=In;break;case"scroll":s=pn;break;case"wheel":s=jn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=!!(4&t),f=!c&&"scroll"===e,p=c?null!==u?u+"Capture":null:u;c=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&null!=(m=je(h,p))&&c.push($r(h,m,d))),f)break;h=h.return}0<c.length&&(u=new s(u,l,null,n,o),a.push({event:u,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!bo(l)&&!l[mo])&&(s||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?bo(l):null)&&(l!==(f=qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==s?u:_o(s),d=null==l?u:_o(l),(u=new c(m,h+"leave",s,n,o)).target=f,u.relatedTarget=d,m=null,bo(o)===r&&((c=new c(p,h+"enter",l,n,o)).target=d,c.relatedTarget=f,m=c),f=m,s&&l)e:{for(p=l,h=0,d=c=s;d;d=Yr(d))h++;for(d=0,m=p;m;m=Yr(m))d++;for(;0<h-d;)c=Yr(c),h--;for(;0<d-h;)p=Yr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Yr(c),p=Yr(p)}c=null}else c=null;null!==s&&Wr(a,u,s,c,!1),null!==l&&null!==f&&Wr(a,f,l,c,!0)}if("select"===(s=(u=r?_o(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var y=Kn;else if(Bn(u))if(Xn)y=ar;else{y=or;var v=rr}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(y=ir);switch(y&&(y=y(e,r))?$n(a,y,n,o):(v&&v(e,u,r),"focusout"===e&&(v=u._wrapperState)&&v.controlled&&"number"===u.type&&ee(u,"number",u.value)),v=r?_o(r):window,e){case"focusin":(Bn(v)||"true"===v.contentEditable)&&(yr=v,vr=r,gr=null);break;case"focusout":gr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(An&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,qn=!0)),0<(v=Gr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),(g||null!==(g=Un(n)))&&(b.data=g))),(g=Fn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Vn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return An&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Gr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Mr(a,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=je(e,n))&&r.unshift($r(e,i,o)),null!=(i=je(e,t))&&r.push($r(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,o?null!=(s=je(n,i))&&a.unshift($r(n,s,u)):o||null!=(s=je(n,i))&&a.push($r(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Kr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(uo)}:ro;function uo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function lo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,yo="__reactEvents$"+fo,vo="__reactListeners$"+fo,go="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Eo(e){return e[ho]||null}var So=[],xo=-1;function Oo(e){return{current:e}}function ko(e){0>xo||(e.current=So[xo],So[xo]=null,xo--)}function Po(e,t){xo++,So[xo]=e.current,e.current=t}var To={},Co=Oo(To),Io=Oo(!1),No=To;function jo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=e.childContextTypes}function Do(){ko(Io),ko(Co)}function Ro(e,t,n){if(Co.current!==To)throw Error(i(168));Po(Co,t),Po(Io,n)}function Fo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return A({},n,r)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,No=Co.current,Po(Co,e),Po(Io,Io.current),!0}function Mo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Fo(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,ko(Io),ko(Co),Po(Co,e)):ko(Io),Po(Io,n)}var Vo=null,zo=!1,Uo=!1;function qo(e){null===Vo?Vo=[e]:Vo.push(e)}function Ho(){if(!Uo&&null!==Vo){Uo=!0;var e=0,t=bt;try{var n=Vo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vo=null,zo=!1}catch(t){throw null!==Vo&&(Vo=Vo.slice(e+1)),Ye(Ze,Ho),t}finally{bt=t,Uo=!1}}return null}var Bo=[],$o=0,Go=null,Yo=0,Wo=[],Qo=0,Ko=null,Xo=1,Jo="";function Zo(e,t){Bo[$o++]=Yo,Bo[$o++]=Go,Go=e,Yo=t}function ei(e,t,n){Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Ko=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Bo[--$o],Bo[$o]=null,Yo=Bo[--$o],Bo[$o]=null;for(;e===Ko;)Ko=Wo[--Qo],Wo[Qo]=null,Jo=Wo[--Qo],Wo[Qo]=null,Xo=Wo[--Qo],Wo[Qo]=null}var ri=null,oi=null,ii=!1,ai=null;function ui(e,t){var n=Nl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=lo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function li(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!si(e,t)){if(li(e))throw Error(i(418));t=lo(n.nextSibling);var r=ri;t&&si(e,t)?ui(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(li(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(li(e))throw di(),Error(i(418));for(;t;)ui(e,t),t=lo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=lo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?lo(e.stateNode.nextSibling):null;return!0}function di(){for(var e=oi;e;)e=lo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var yi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ll(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Al(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===j&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Dl(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ml(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Rl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Al(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Dl(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case E:return(t=Ml(t,e.mode,n)).return=e,t;case j:return p(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Rl(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?l(e,t,n,r):null;case E:return n.key===o?c(e,t,n,r):null;case j:return d(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:f(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case j:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return f(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function m(o,i,u,s){for(var l=null,c=null,f=i,m=i=0,y=null;null!==f&&m<u.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=d(o,f,u[m],s);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,m),null===c?l=v:c.sibling=v,c=v,f=y}if(m===u.length)return n(o,f),ii&&Zo(o,m),l;if(null===f){for(;m<u.length;m++)null!==(f=p(o,u[m],s))&&(i=a(f,i,m),null===c?l=f:c.sibling=f,c=f);return ii&&Zo(o,m),l}for(f=r(o,f);m<u.length;m++)null!==(y=h(f,o,m,u[m],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),l}function y(o,u,s,l){var c=R(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var f=c=null,m=u,y=u=0,v=null,g=s.next();null!==m&&!g.done;y++,g=s.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=d(o,m,g.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),u=a(b,u,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),ii&&Zo(o,y),c;if(null===m){for(;!g.done;y++,g=s.next())null!==(g=p(o,g.value,l))&&(u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return ii&&Zo(o,y),c}for(m=r(o,m);!g.done;y++,g=s.next())null!==(g=h(m,o,y,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,y),c}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var l=a.key,c=i;null!==c;){if(c.key===l){if((l=a.type)===S){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===j&&bi(l)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=vi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((i=Rl(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Dl(a.type,a.key,a.props,null,r.mode,s)).ref=vi(r,i,a),s.return=r,r=s)}return u(r);case E:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ml(a,r.mode,s)).return=r,r=i}return u(r);case j:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return m(r,i,a,s);if(R(a))return y(r,i,a,s);gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Al(a,r.mode,s)).return=r,r=i),u(r)):n(r,i)}}var _i=wi(!0),Ei=wi(!1),Si=Oo(null),xi=null,Oi=null,ki=null;function Pi(){ki=Oi=xi=null}function Ti(e){var t=Si.current;ko(Si),e._currentValue=t}function Ci(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t){xi=e,ki=Oi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bu=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===Oi){if(null===xi)throw Error(i(308));Oi=e,xi.dependencies={lanes:0,firstContext:e}}else Oi=Oi.next=e;return t}var ji=null;function Li(e){null===ji?ji=[e]:ji.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Li(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ri(e,r)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Fi=!1;function Ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ts){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ri(e,n)}return null===(o=r.interleaved)?(t.next=t,Li(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ri(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;Fi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,l=s.next;s.next=null,null===a?i=l:a.next=l,a=s;var c=e.alternate;null!==c&&(u=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===u?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s)}if(null!==i){var f=o.baseState;for(a=0,c=l=s=null,u=i;;){var p=u.lane,d=u.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,m=u;switch(p=t,d=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(d,f,p);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(d,f,p):h))break e;f=A({},f,p);break e;case 2:Fi=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(l=c=d,s=f):c=c.next=d,a|=p;if(null===(u=u.next)){if(null===(u=o.shared.pending))break;u=(p=u).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=f),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Fs|=a,e.lanes=a,e.memoizedState=f}}function Bi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var $i={},Gi=Oo($i),Yi=Oo($i),Wi=Oo($i);function Qi(e){if(e===$i)throw Error(i(174));return e}function Ki(e,t){switch(Po(Wi,t),Po(Yi,e),Po(Gi,$i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(Gi),Po(Gi,t)}function Xi(){ko(Gi),ko(Yi),ko(Wi)}function Ji(e){Qi(Wi.current);var t=Qi(Gi.current),n=se(t,e.type);t!==n&&(Po(Yi,e),Po(Gi,n))}function Zi(e){Yi.current===e&&(ko(Gi),ko(Yi))}var ea=Oo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,ua=null,sa=null,la=null,ca=!1,fa=!1,pa=0,da=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ya(e,t,n,r,o,a){if(aa=a,ua=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:eu,e=n(r,o),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(i(301));a+=1,la=sa=null,t.updateQueue=null,oa.current=tu,e=n(r,o)}while(fa)}if(oa.current=Ja,t=null!==sa&&null!==sa.next,aa=0,la=sa=ua=null,ca=!1,t)throw Error(i(300));return e}function va(){var e=0!==pa;return pa=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?ua.memoizedState=la=e:la=la.next=e,la}function ba(){if(null===sa){var e=ua.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===la?ua.memoizedState:la.next;if(null!==t)la=t,sa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===la?ua.memoizedState=la=e:la=la.next=e}return la}function wa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=sa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var u=o.next;o.next=a.next,a.next=u}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=u=null,l=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=p,u=r):l=l.next=p,ua.lanes|=f,Fs|=f}c=c.next}while(null!==c&&c!==a);null===l?u=r:l.next=s,ur(r,t.memoizedState)||(bu=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ua.lanes|=a,Fs|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ea(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{a=e(a,u.action),u=u.next}while(u!==o);ur(a,t.memoizedState)||(bu=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function xa(e,t){var n=ua,r=ba(),o=t(),a=!ur(r.memoizedState,o);if(a&&(r.memoizedState=o,bu=!0),r=r.queue,Fa(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Na(9,ka.bind(null,n,r,o,t),void 0,null),null===Cs)throw Error(i(349));30&aa||Oa(n,t,o)}return o}function Oa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ua.updateQueue)?(t={lastEffect:null,stores:null},ua.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ca(e)}function Pa(e,t,n){return n((function(){Ta(t)&&Ca(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch(e){return!0}}function Ca(e){var t=Ri(e,1);null!==t&&nl(t,e,1,-1)}function Ia(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Wa.bind(null,ua,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ua.updateQueue)?(t={lastEffect:null,stores:null},ua.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return ba().memoizedState}function La(e,t,n,r){var o=ga();ua.flags|=e,o.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Na(t,n,i,r))}ua.flags|=e,o.memoizedState=Na(1|t,n,i,r)}function Ra(e,t){return La(8390656,8,e,t)}function Fa(e,t){return Da(2048,8,e,t)}function Aa(e,t){return Da(4,2,e,t)}function Ma(e,t){return Da(4,4,e,t)}function Va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,Da(4,4,Va.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ba(e,t,n){return 21&aa?(ur(n,t)||(n=mt(),ua.lanes|=n,Fs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bu=!0),e.memoizedState=n)}function $a(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ga(){return ba().memoizedState}function Ya(e,t,n){var r=tl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e)?Ka(t,n):null!==(n=Di(e,t,n,r))&&(nl(n,e,r,el()),Xa(n,t,r))}function Wa(e,t,n){var r=tl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Ka(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,ur(u,a)){var s=t.interleaved;return null===s?(o.next=o,Li(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(nl(n,e,r,o=el()),Xa(n,t,r))}}function Qa(e){var t=e.alternate;return e===ua||null!==t&&t===ua}function Ka(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Ja={readContext:Ni,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ni,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:Ra,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,La(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,ua,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:Ia,useDebugValue:Ua,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=$a.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ua,o=ga();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Cs)throw Error(i(349));30&aa||Oa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ra(Pa.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ga(),t=Cs.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=da++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eu={readContext:Ni,useCallback:qa,useContext:Ni,useEffect:Fa,useImperativeHandle:za,useInsertionEffect:Aa,useLayoutEffect:Ma,useMemo:Ha,useReducer:_a,useRef:ja,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ba(ba(),sa.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:xa,useId:Ga,unstable_isNewReconciler:!1},tu={readContext:Ni,useCallback:qa,useContext:Ni,useEffect:Fa,useImperativeHandle:za,useInsertionEffect:Aa,useLayoutEffect:Ma,useMemo:Ha,useReducer:Ea,useRef:ja,useState:function(){return Ea(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===sa?t.memoizedState=e:Ba(t,sa.memoizedState,e)},useTransition:function(){return[Ea(wa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:xa,useId:Ga,unstable_isNewReconciler:!1};function nu(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ru(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ou={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),i=Vi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(nl(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),i=Vi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(nl(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),o=Vi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(nl(t,e,r,n),Ui(t,e,r))}};function iu(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,i))}function au(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Ni(i):(o=Lo(t)?No:Co.current,i=(r=null!=(r=t.contextTypes))?jo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ou,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function uu(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ou.enqueueReplaceState(t,t.state,null)}function su(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ni(i):(i=Lo(t)?No:Co.current,o.context=jo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ru(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ou.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function lu(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cu(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fu(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pu="function"==typeof WeakMap?WeakMap:Map;function du(e,t,n){(n=Vi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bs||(Bs=!0,$s=r),fu(0,t)},n}function hu(e,t,n){(n=Vi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fu(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fu(0,t),"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pu;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ol.bind(null,e,t,n),t.then(e,e))}function yu(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vu(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Vi(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var gu=w.ReactCurrentOwner,bu=!1;function wu(e,t,n,r){t.child=null===e?Ei(t,null,n,r):_i(t,e.child,n,r)}function _u(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ya(e,t,n,r,i,o),n=va(),null===e||bu?(ii&&n&&ti(t),t.flags|=1,wu(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bu(e,t,o))}function Eu(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||jl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Su(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Bu(e,t,o)}return t.flags|=1,(e=Ll(i,r)).ref=t.ref,e.return=t,t.child=e}function Su(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(bu=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Bu(e,t,o);131072&e.flags&&(bu=!0)}}return ku(e,t,n,r,o)}function xu(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ls,js),js|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(Ls,js),js|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ls,js),js|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(Ls,js),js|=r;return wu(e,t,o,n),t.child}function Ou(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,n,r,o){var i=Lo(n)?No:Co.current;return i=jo(t,i),Ii(t,o),n=ya(e,t,n,r,i,o),r=va(),null===e||bu?(ii&&r&&ti(t),t.flags|=1,wu(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bu(e,t,o))}function Pu(e,t,n,r,o){if(Lo(n)){var i=!0;Ao(t)}else i=!1;if(Ii(t,o),null===t.stateNode)Hu(e,t),au(t,n,r),su(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;l="object"==typeof l&&null!==l?Ni(l):jo(t,l=Lo(n)?No:Co.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||s!==l)&&uu(t,a,r,l),Fi=!1;var p=t.memoizedState;a.state=p,Hi(t,r,a,o),s=t.memoizedState,u!==r||p!==s||Io.current||Fi?("function"==typeof c&&(ru(t,n,c,r),s=t.memoizedState),(u=Fi||iu(t,n,u,r,p,s,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Mi(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:nu(t.type,u),a.props=l,f=t.pendingProps,p=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Ni(s):jo(t,s=Lo(n)?No:Co.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==f||p!==s)&&uu(t,a,r,s),Fi=!1,p=t.memoizedState,a.state=p,Hi(t,r,a,o);var h=t.memoizedState;u!==f||p!==h||Io.current||Fi?("function"==typeof d&&(ru(t,n,d,r),h=t.memoizedState),(l=Fi||iu(t,n,l,r,p,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Tu(e,t,n,r,i,o)}function Tu(e,t,n,r,o,i){Ou(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Mo(t,n,!1),Bu(e,t,i);r=t.stateNode,gu.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,u,i)):wu(e,t,u,i),t.memoizedState=r.state,o&&Mo(t,n,!0),t.child}function Cu(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),Ki(e,t.containerInfo)}function Iu(e,t,n,r,o){return hi(),mi(o),t.flags|=256,wu(e,t,n,r),t.child}var Nu,ju,Lu,Du,Ru={dehydrated:null,treeContext:null,retryLane:0};function Fu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Au(e,t,n){var r,o=t.pendingProps,a=ea.current,u=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(u=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,u?(o=t.mode,u=t.child,s={mode:"hidden",children:s},1&o||null===u?u=Fl(s,o,0,null):(u.childLanes=0,u.pendingProps=s),e=Rl(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Fu(n),t.memoizedState=Ru,e):Mu(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,u){if(n)return 256&t.flags?(t.flags&=-257,Vu(e,t,u,r=cu(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Fl({mode:"visible",children:r.children},o,0,null),(a=Rl(a,o,u,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&_i(t,e.child,null,u),t.child.memoizedState=Fu(u),t.memoizedState=Ru,a);if(!(1&t.mode))return Vu(e,t,u,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Vu(e,t,u,r=cu(a=Error(i(419)),r,void 0))}if(s=!!(u&e.childLanes),bu||s){if(null!==(r=Cs)){switch(u&-u){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|u)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ri(e,o),nl(r,e,o,-1))}return ml(),Vu(e,t,u,r=cu(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Pl.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=lo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Xo=e.id,Jo=e.overflow,Ko=t),(t=Mu(t,r.children)).flags|=4096,t)}(e,t,s,o,r,a,n);if(u){u=o.fallback,s=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=Ll(a,l)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==r?u=Ll(r,u):(u=Rl(u,s,n,null)).flags|=2,u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,s=null===(s=e.child.memoizedState)?Fu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~n,t.memoizedState=Ru,o}return e=(u=e.child).sibling,o=Ll(u,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Mu(e,t){return(t=Fl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vu(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=Mu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ci(e.return,t,n)}function Uu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qu(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wu(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zu(e,n,t);else if(19===e.tag)zu(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Uu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Uu(t,!0,n,null,i);break;case"together":Uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hu(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ll(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ll(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $u(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gu(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yu(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gu(t),null;case 1:case 17:return Lo(t.type)&&Do(),Gu(t),null;case 3:return r=t.stateNode,Xi(),ko(Io),ko(Co),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(al(ai),ai=null))),ju(e,t),Gu(t),null;case 5:Zi(t);var o=Qi(Wi.current);if(n=t.type,null!==e&&null!=t.stateNode)Lu(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Gu(t),null}if(e=Qi(Gi.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)Vr(Rr[o],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":K(r,a),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Vr("invalid",r);break;case"textarea":oe(r,a),Vr("invalid",r)}for(var s in ge(n,a),o=null,a)if(a.hasOwnProperty(s)){var l=a[s];"children"===s?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),o=["children",""+l]):u.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Vr("scroll",r)}switch(n){case"input":G(r),Z(r,a,!0);break;case"textarea":G(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Nu(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Vr("cancel",e),Vr("close",e),o=r;break;case"iframe":case"object":case"embed":Vr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)Vr(Rr[o],e);o=r;break;case"source":Vr("error",e),o=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),o=r;break;case"details":Vr("toggle",e),o=r;break;case"input":K(e,r),o=Q(e,r),Vr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=A({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Vr("invalid",e)}for(a in ge(n,o),l=o)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ye(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Vr("scroll",e):null!=c&&b(e,a,c,s))}switch(n){case"input":G(e),Z(e,r,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+B(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gu(t),null;case 6:if(e&&null!=t.stateNode)Du(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Qi(Wi.current),Qi(Gi.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Gu(t),null;case 13:if(ko(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))di(),hi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gu(t),a=!1}else null!==ai&&(al(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ds&&(Ds=3):ml())),null!==t.updateQueue&&(t.flags|=4),Gu(t),null);case 4:return Xi(),ju(e,t),null===e&&qr(t.stateNode.containerInfo),Gu(t),null;case 10:return Ti(t.type._context),Gu(t),null;case 19:if(ko(ea),null===(a=t.memoizedState))return Gu(t),null;if(r=!!(128&t.flags),null===(s=a.rendering))if(r)$u(a,!1);else{if(0!==Ds||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,$u(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>qs&&(t.flags|=128,r=!0,$u(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$u(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return Gu(t),null}else 2*Xe()-a.renderingStartTime>qs&&1073741824!==n&&(t.flags|=128,r=!0,$u(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,Po(ea,r?1&n|2:1&n),t):(Gu(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&js)&&(Gu(t),6&t.subtreeFlags&&(t.flags|=8192)):Gu(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Wu(e,t){switch(ni(t),t.tag){case 1:return Lo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),ko(Io),ko(Co),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Xi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}Nu=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ju=function(){},Lu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qi(Gi.current);var i,a=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),a=[];break;case"select":o=A({},o,{value:void 0}),r=A({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(u.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(u.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Vr("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Du=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qu=!1,Ku=!1,Xu="function"==typeof WeakSet?WeakSet:Set,Ju=null;function Zu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xl(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){xl(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[yo],delete t[vo],delete t[go]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ls(e,t,n),e=e.sibling;null!==e;)ls(e,t,n),e=e.sibling}var cs=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)ds(e,t,n),n=n.sibling}function ds(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ku||Zu(n,t);case 6:var r=cs,o=fs;cs=null,ps(e,t,n),fs=o,null!==(cs=r)&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),qt(e)):so(cs,n.stateNode));break;case 4:r=cs,o=fs,cs=n.stateNode.containerInfo,fs=!0,ps(e,t,n),cs=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Ku&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&es(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Ku&&(Zu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xl(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Ku=(r=Ku)||null!==n.memoizedState,ps(e,t,n),Ku=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xu),t.forEach((function(t){var r=Tl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,u=t,s=u;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,fs=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===cs)throw Error(i(160));ds(a,u,o),cs=null,fs=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){xl(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ys(t,e),t=t.sibling}function ys(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){xl(e,e.return,t)}try{ns(5,e,e.return)}catch(t){xl(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&r&&null!==n&&Zu(n,n.return);break;case 5:if(ms(t,e),vs(e),512&r&&null!==n&&Zu(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){xl(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,u=null!==n?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&X(o,a),be(s,u);var c=be(s,a);for(u=0;u<l.length;u+=2){var f=l[u],p=l[u+1];"style"===f?ye(o,p):"dangerouslySetInnerHTML"===f?fe(o,p):"children"===f?pe(o,p):b(o,f,p,c)}switch(s){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):d!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){xl(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){xl(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(t){xl(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Us=Xe())),4&r&&hs(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ku=(c=Ku)||f,ms(t,e),Ku=c):ms(t,e),vs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Ju=e,f=e.child;null!==f;){for(p=Ju=f;null!==Ju;){switch(h=(d=Ju).child,d.tag){case 0:case 11:case 14:case 15:ns(4,d,d.return);break;case 1:Zu(d,d.return);var m=d.stateNode;if("function"==typeof m.componentWillUnmount){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xl(r,n,e)}}break;case 5:Zu(d,d.return);break;case 22:if(null!==d.memoizedState){_s(p);continue}}null!==h?(h.return=d,Ju=h):_s(p)}f=f.sibling}e:for(f=null,p=e;;){if(5===p.tag){if(null===f){f=p;try{o=p.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=p.stateNode,u=null!=(l=p.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=me("display",u))}catch(t){xl(e,e.return,t)}}}else if(6===p.tag){if(null===f)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){xl(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ms(t,e),vs(e),4&r&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),ls(e,us(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ss(e,us(e),a);break;default:throw Error(i(161))}}catch(t){xl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gs(e,t,n){Ju=e,bs(e,t,n)}function bs(e,t,n){for(var r=!!(1&e.mode);null!==Ju;){var o=Ju,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qu;if(!a){var u=o.alternate,s=null!==u&&null!==u.memoizedState||Ku;u=Qu;var l=Ku;if(Qu=a,(Ku=s)&&!l)for(Ju=o;null!==Ju;)s=(a=Ju).child,22===a.tag&&null!==a.memoizedState?Es(o):null!==s?(s.return=a,Ju=s):Es(o);for(;null!==i;)Ju=i,bs(i,t,n),i=i.sibling;Ju=o,Qu=u,Ku=l}ws(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Ju=i):ws(e)}}function ws(e){for(;null!==Ju;){var t=Ju;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ku||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ku)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nu(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bi(t,a,r);break;case 3:var u=t.updateQueue;if(null!==u){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bi(t,u,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var p=f.dehydrated;null!==p&&qt(p)}}}break;default:throw Error(i(163))}Ku||512&t.flags&&os(t)}catch(e){xl(t,t.return,e)}}if(t===e){Ju=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ju=n;break}Ju=t.return}}function _s(e){for(;null!==Ju;){var t=Ju;if(t===e){Ju=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ju=n;break}Ju=t.return}}function Es(e){for(;null!==Ju;){var t=Ju;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){xl(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){xl(t,o,e)}}var i=t.return;try{os(t)}catch(e){xl(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){xl(t,a,e)}}}catch(e){xl(t,t.return,e)}if(t===e){Ju=null;break}var u=t.sibling;if(null!==u){u.return=t.return,Ju=u;break}Ju=t.return}}var Ss,xs=Math.ceil,Os=w.ReactCurrentDispatcher,ks=w.ReactCurrentOwner,Ps=w.ReactCurrentBatchConfig,Ts=0,Cs=null,Is=null,Ns=0,js=0,Ls=Oo(0),Ds=0,Rs=null,Fs=0,As=0,Ms=0,Vs=null,zs=null,Us=0,qs=1/0,Hs=null,Bs=!1,$s=null,Gs=null,Ys=!1,Ws=null,Qs=0,Ks=0,Xs=null,Js=-1,Zs=0;function el(){return 6&Ts?Xe():-1!==Js?Js:Js=Xe()}function tl(e){return 1&e.mode?2&Ts&&0!==Ns?Ns&-Ns:null!==yi.transition?(0===Zs&&(Zs=mt()),Zs):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function nl(e,t,n,r){if(50<Ks)throw Ks=0,Xs=null,Error(i(185));vt(e,n,r),2&Ts&&e===Cs||(e===Cs&&(!(2&Ts)&&(As|=n),4===Ds&&ul(e,Ns)),rl(e,r),1===n&&0===Ts&&!(1&t.mode)&&(qs=Xe()+500,zo&&Ho()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),u=1<<a,s=o[a];-1===s?u&n&&!(u&r)||(o[a]=dt(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}(e,t);var r=pt(e,e===Cs?Ns:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){zo=!0,qo(e)}(sl.bind(null,e)):qo(sl.bind(null,e)),ao((function(){!(6&Ts)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Cl(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Js=-1,Zs=0,6&Ts)throw Error(i(327));var n=e.callbackNode;if(El()&&e.callbackNode!==n)return null;var r=pt(e,e===Cs?Ns:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=yl(e,r);else{t=r;var o=Ts;Ts|=2;var a=hl();for(Cs===e&&Ns===t||(Hs=null,qs=Xe()+500,pl(e,t));;)try{gl();break}catch(t){dl(e,t)}Pi(),Os.current=a,Ts=o,null!==Is?t=0:(Cs=null,Ns=0,t=Ds)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=il(e,o)),1===t)throw n=Rs,pl(e,0),ul(e,r),rl(e,Xe()),n;if(6===t)ul(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ur(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=yl(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=il(e,a))),1!==t)))throw n=Rs,pl(e,0),ul(e,r),rl(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:_l(e,zs,Hs);break;case 3:if(ul(e,r),(130023424&r)===r&&10<(t=Us+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(_l.bind(null,e,zs,Hs),t);break}_l(e,zs,Hs);break;case 4:if(ul(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-at(r);a=1<<u,(u=t[u])>o&&(o=u),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xs(r/1960))-r)){e.timeoutHandle=ro(_l.bind(null,e,zs,Hs),r);break}_l(e,zs,Hs);break;default:throw Error(i(329))}}}return rl(e,Xe()),e.callbackNode===n?ol.bind(null,e):null}function il(e,t){var n=Vs;return e.current.memoizedState.isDehydrated&&(pl(e,t).flags|=256),2!==(e=yl(e,t))&&(t=zs,zs=n,null!==t&&al(t)),e}function al(e){null===zs?zs=e:zs.push.apply(zs,e)}function ul(e,t){for(t&=~Ms,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sl(e){if(6&Ts)throw Error(i(327));El();var t=pt(e,0);if(!(1&t))return rl(e,Xe()),null;var n=yl(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=il(e,r))}if(1===n)throw n=Rs,pl(e,0),ul(e,t),rl(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,zs,Hs),rl(e,Xe()),null}function ll(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(qs=Xe()+500,zo&&Ho())}}function cl(e){null!==Ws&&0===Ws.tag&&!(6&Ts)&&El();var t=Ts;Ts|=1;var n=Ps.transition,r=bt;try{if(Ps.transition=null,bt=1,e)return e()}finally{bt=r,Ps.transition=n,!(6&(Ts=t))&&Ho()}}function fl(){js=Ls.current,ko(Ls)}function pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Xi(),ko(Io),ko(Co),ra();break;case 5:Zi(r);break;case 4:Xi();break;case 13:case 19:ko(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Cs=e,Is=e=Ll(e.current,null),Ns=js=t,Ds=0,Rs=null,Ms=As=Fs=0,zs=Vs=null,null!==ji){for(t=0;t<ji.length;t++)if(null!==(r=(n=ji[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}ji=null}return e}function dl(e,t){for(;;){var n=Is;try{if(Pi(),oa.current=Ja,ca){for(var r=ua.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,la=sa=ua=null,fa=!1,pa=0,ks.current=null,null===n||null===n.return){Ds=1,Rs=t,Is=null;break}e:{var a=e,u=n.return,s=n,l=t;if(t=Ns,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,f=s,p=f.tag;if(!(1&f.mode||0!==p&&11!==p&&15!==p)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=yu(u);if(null!==h){h.flags&=-257,vu(h,u,s,0,t),1&h.mode&&mu(a,c,t),l=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(!(1&t)){mu(a,c,t),ml();break e}l=Error(i(426))}else if(ii&&1&s.mode){var v=yu(u);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vu(v,u,s,0,t),mi(lu(l,s));break e}}a=l=lu(l,s),4!==Ds&&(Ds=2),null===Vs?Vs=[a]:Vs.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,du(0,l,t));break e;case 1:s=l;var g=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gs&&Gs.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,hu(a,s,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(e){t=e,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function hl(){var e=Os.current;return Os.current=Ja,null===e?Ja:e}function ml(){0!==Ds&&3!==Ds&&2!==Ds||(Ds=4),null===Cs||!(268435455&Fs)&&!(268435455&As)||ul(Cs,Ns)}function yl(e,t){var n=Ts;Ts|=2;var r=hl();for(Cs===e&&Ns===t||(Hs=null,pl(e,t));;)try{vl();break}catch(t){dl(e,t)}if(Pi(),Ts=n,Os.current=r,null!==Is)throw Error(i(261));return Cs=null,Ns=0,Ds}function vl(){for(;null!==Is;)bl(Is)}function gl(){for(;null!==Is&&!Qe();)bl(Is)}function bl(e){var t=Ss(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?wl(e):Is=t,ks.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Wu(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return Ds=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yu(n,t,js)))return void(Is=n);if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ds&&(Ds=5)}function _l(e,t,n){var r=bt,o=Ps.transition;try{Ps.transition=null,bt=1,function(e,t,n,r){do{El()}while(null!==Ws);if(6&Ts)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Cs&&(Is=Cs=null,Ns=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ys||(Ys=!0,Cl(tt,(function(){return El(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ps.transition,Ps.transition=null;var u=bt;bt=1;var s=Ts;Ts|=4,ks.current=null,function(e,t){if(eo=Bt,dr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var u=0,s=-1,l=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(s=u+o),p!==a||0!==r&&3!==p.nodeType||(l=u+r),3===p.nodeType&&(u+=p.nodeValue.length),null!==(h=p.firstChild);)d=p,p=h;for(;;){if(p===e)break t;if(d===n&&++c===o&&(s=u),d===a&&++f===r&&(l=u),null!==(h=p.nextSibling))break;d=(p=d).parentNode}p=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Bt=!1,Ju=t;null!==Ju;)if(e=(t=Ju).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ju=e;else for(;null!==Ju;){t=Ju;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:nu(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){xl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ju=e;break}Ju=t.return}m=ts,ts=!1}(e,n),ys(n,e),hr(to),Bt=!!eo,to=eo=null,e.current=n,gs(n,e,o),Ke(),Ts=s,bt=u,Ps.transition=a}else e.current=n;if(Ys&&(Ys=!1,Ws=e,Qs=o),0===(a=e.pendingLanes)&&(Gs=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rl(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Bs)throw Bs=!1,e=$s,$s=null,e;!!(1&Qs)&&0!==e.tag&&El(),1&(a=e.pendingLanes)?e===Xs?Ks++:(Ks=0,Xs=e):Ks=0,Ho()}(e,t,n,r)}finally{Ps.transition=o,bt=r}return null}function El(){if(null!==Ws){var e=wt(Qs),t=Ps.transition,n=bt;try{if(Ps.transition=null,bt=16>e?16:e,null===Ws)var r=!1;else{if(e=Ws,Ws=null,Qs=0,6&Ts)throw Error(i(331));var o=Ts;for(Ts|=4,Ju=e.current;null!==Ju;){var a=Ju,u=a.child;if(16&Ju.flags){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Ju=c;null!==Ju;){var f=Ju;switch(f.tag){case 0:case 11:case 15:ns(8,f,a)}var p=f.child;if(null!==p)p.return=f,Ju=p;else for(;null!==Ju;){var d=(f=Ju).sibling,h=f.return;if(is(f),f===c){Ju=null;break}if(null!==d){d.return=h,Ju=d;break}Ju=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Ju=a}}if(2064&a.subtreeFlags&&null!==u)u.return=a,Ju=u;else e:for(;null!==Ju;){if(2048&(a=Ju).flags)switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Ju=g;break e}Ju=a.return}}var b=e.current;for(Ju=b;null!==Ju;){var w=(u=Ju).child;if(2064&u.subtreeFlags&&null!==w)w.return=u,Ju=w;else e:for(u=b;null!==Ju;){if(2048&(s=Ju).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){xl(s,s.return,e)}if(s===u){Ju=null;break e}var _=s.sibling;if(null!==_){_.return=s.return,Ju=_;break e}Ju=s.return}}if(Ts=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Ps.transition=t}}return!1}function Sl(e,t,n){e=zi(e,t=du(0,t=lu(n,t),1),1),t=el(),null!==e&&(vt(e,1,t),rl(e,t))}function xl(e,t,n){if(3===e.tag)Sl(e,e,n);else for(;null!==t;){if(3===t.tag){Sl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=zi(t,e=hu(t,e=lu(n,e),1),1),e=el(),null!==t&&(vt(t,1,e),rl(t,e));break}}t=t.return}}function Ol(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ns&n)===n&&(4===Ds||3===Ds&&(130023424&Ns)===Ns&&500>Xe()-Us?pl(e,0):Ms|=n),rl(e,t)}function kl(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=el();null!==(e=Ri(e,t))&&(vt(e,t,n),rl(e,n))}function Pl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kl(e,n)}function Tl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),kl(e,n)}function Cl(e,t){return Ye(e,t)}function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nl(e,t,n,r){return new Il(e,t,n,r)}function jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;return null===n?((n=Nl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dl(e,t,n,r,o,a){var u=2;if(r=e,"function"==typeof e)jl(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case S:return Rl(n.children,o,a,t);case x:u=8,o|=8;break;case O:return(e=Nl(12,n,t,2|o)).elementType=O,e.lanes=a,e;case C:return(e=Nl(13,n,t,o)).elementType=C,e.lanes=a,e;case I:return(e=Nl(19,n,t,o)).elementType=I,e.lanes=a,e;case L:return Fl(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:u=10;break e;case P:u=9;break e;case T:u=11;break e;case N:u=14;break e;case j:u=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nl(u,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Rl(e,t,n,r){return(e=Nl(7,e,r,t)).lanes=n,e}function Fl(e,t,n,r){return(e=Nl(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Al(e,t,n){return(e=Nl(6,e,null,t)).lanes=n,e}function Ml(e,t,n){return(t=Nl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,o,i,a,u,s){return e=new Vl(e,t,n,u,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nl(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ai(i),e}function Ul(e){if(!e)return To;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Fo(e,n,t)}return t}function ql(e,t,n,r,o,i,a,u,s){return(e=zl(n,r,!0,e,0,i,0,u,s)).context=Ul(null),n=e.current,(i=Vi(r=el(),o=tl(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,vt(e,o,r),rl(e,r),e}function Hl(e,t,n,r){var o=t.current,i=el(),a=tl(o);return n=Ul(n),null===t.context?t.context=n:t.pendingContext=n,(t=Vi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(nl(e,o,a,i),Ui(e,o,a)),a}function Bl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gl(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)bu=!0;else{if(!(e.lanes&n||128&t.flags))return bu=!1,function(e,t,n){switch(t.tag){case 3:Cu(t),hi();break;case 5:Ji(t);break;case 1:Lo(t.type)&&Ao(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(Si,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?Au(e,t,n):(Po(ea,1&ea.current),null!==(e=Bu(e,t,n))?e.sibling:null);Po(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,xu(e,t,n)}return Bu(e,t,n)}(e,t,n);bu=!!(131072&e.flags)}else bu=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hu(e,t),e=t.pendingProps;var o=jo(t,Co.current);Ii(t,n),o=ya(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(r)?(a=!0,Ao(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ai(t),o.updater=ou,t.stateNode=o,o._reactInternals=t,su(t,r,e,n),t=Tu(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wu(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return jl(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===N)return 14}return 2}(r),e=nu(r,e),o){case 0:t=ku(null,t,r,e,n);break e;case 1:t=Pu(null,t,r,e,n);break e;case 11:t=_u(null,t,r,e,n);break e;case 14:t=Eu(null,t,r,nu(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,ku(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 1:return r=t.type,o=t.pendingProps,Pu(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 3:e:{if(Cu(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Mi(e,t),Hi(t,r,null,n);var u=t.memoizedState;if(r=u.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Iu(e,t,r,n,o=lu(Error(i(423)),t));break e}if(r!==o){t=Iu(e,t,r,n,o=lu(Error(i(424)),t));break e}for(oi=lo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ei(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Bu(e,t,n);break e}wu(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,no(r,o)?u=null:null!==a&&no(r,a)&&(t.flags|=32),Ou(e,t),wu(e,t,u,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Au(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):wu(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,_u(e,t,r,o=t.elementType===r?o:nu(r,o),n);case 7:return wu(e,t,t.pendingProps,n),t.child;case 8:case 12:return wu(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,u=o.value,Po(Si,r._currentValue),r._currentValue=u,null!==a)if(ur(a.value,u)){if(a.children===o.children&&!Io.current){t=Bu(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){u=a.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Vi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ci(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===a.tag)u=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(i(341));u.lanes|=n,null!==(s=u.alternate)&&(s.lanes|=n),Ci(u,n,t),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===t){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}wu(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ii(t,n),r=r(o=Ni(o)),t.flags|=1,wu(e,t,r,n),t.child;case 14:return o=nu(r=t.type,t.pendingProps),Eu(e,t,r,o=nu(r.type,o),n);case 15:return Su(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nu(r,o),Hu(e,t),t.tag=1,Lo(r)?(e=!0,Ao(t)):e=!1,Ii(t,n),au(t,r,o),su(t,r,o,n),Tu(null,t,r,!0,e,n);case 19:return qu(e,t,n);case 22:return xu(e,t,n)}throw Error(i(156,t.tag))};var Yl="function"==typeof reportError?reportError:function(e){console.error(e)};function Wl(e){this._internalRoot=e}function Ql(e){this._internalRoot=e}function Kl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function Zl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var u=o;o=function(){var e=Bl(a);u.call(e)}}Hl(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Bl(a);i.call(e)}}var a=ql(t,r,e,0,null,!1,0,"",Jl);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),cl(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var u=r;r=function(){var e=Bl(s);u.call(e)}}var s=zl(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=s,e[mo]=s.current,qr(8===e.nodeType?e.parentNode:e),cl((function(){Hl(t,s,n,r)})),s}(n,t,e,o,r);return Bl(a)}Ql.prototype.render=Wl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hl(e,t,null,null)},Ql.prototype.unmount=Wl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){Hl(null,e,null,null)})),t[mo]=null}},Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&At(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),rl(t,Xe()),!(6&Ts)&&(qs=Xe()+500,Ho()))}break;case 13:cl((function(){var t=Ri(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),Gl(e,1)}},Et=function(e){if(13===e.tag){var t=Ri(e,134217728);null!==t&&nl(t,e,134217728,el()),Gl(e,134217728)}},St=function(e){if(13===e.tag){var t=tl(e),n=Ri(e,t);null!==n&&nl(n,e,t,el()),Gl(e,t)}},xt=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ee=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Eo(r);if(!o)throw Error(i(90));Y(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=ll,Ce=cl;var ec={usingClientEntryPoint:!1,Events:[wo,_o,Eo,ke,Pe,ll]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kl(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kl(e))throw Error(i(299));var n=!1,r="",o=Yl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zl(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Wl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return cl(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(i(200));return Zl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kl(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",u=Yl;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(u=n.onRecoverableError)),t=ql(t,null,e,1,null!=n?n:null,o,0,a,u),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ql(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(i(200));return Zl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(i(40));return!!e._reactRootContainer&&(cl((function(){Zl(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zl(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case y:case m:case s:return e;default:return t}}case o:return t}}}function E(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||_(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:c,props:i,_owner:u.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var o,i={},a=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!x.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:u,props:i,_owner:S.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+T(s,0):i,_(a)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),C(a,t,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",_(e))for(var l=0;l<e.length;l++){var c=i+T(u=e[l],l);s+=C(u,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(u=e.next()).done;)s+=C(u=u.value,t,o,c=i+T(u,l++),a);else if("object"===u)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},L={transition:null},D={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:L,ReactCurrentOwner:S};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)E.call(t,l)&&!x.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:u}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return j.current.useCallback(e,t)},t.useContext=function(e){return j.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return j.current.useDeferredValue(e)},t.useEffect=function(e,t){return j.current.useEffect(e,t)},t.useId=function(){return j.current.useId()},t.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.current.useMemo(e,t)},t.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},t.useRef=function(e){return j.current.useRef(e)},t.useState=function(e){return j.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.current.useTransition()},t.version="18.3.1"},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var u=2*(r+1)-1,s=e[u],l=u+1,c=e[l];if(0>i(s,n))l<o&&0>i(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[u]=n,r=u);else{if(!(l<o&&0>i(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var l=[],c=[],f=1,p=null,d=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function _(e){if(y=!1,w(e),!m)if(null!==r(l))m=!0,L(E);else{var t=r(c);null!==t&&D(_,t.startTime-e)}}function E(e,n){m=!1,y&&(y=!1,g(k),k=-1),h=!0;var i=d;try{for(w(n),p=r(l);null!==p&&(!(p.expirationTime>n)||e&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var u=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?p.callback=u:p===r(l)&&o(l),w(n)}else o(l);p=r(l)}if(null!==p)var s=!0;else{var f=r(c);null!==f&&D(_,f.startTime-n),s=!1}return s}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,x=!1,O=null,k=-1,P=5,T=-1;function C(){return!(t.unstable_now()-T<P)}function I(){if(null!==O){var e=t.unstable_now();T=e;var n=!0;try{n=O(!0,e)}finally{n?S():(x=!1,O=null)}}else x=!1}if("function"==typeof b)S=function(){b(I)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,j=N.port2;N.port1.onmessage=I,S=function(){j.postMessage(null)}}else S=function(){v(I,0)};function L(e){O=e,x||(x=!0,S())}function D(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(l)&&e===r(c)&&(y?(g(k),k=-1):y=!0,D(_,i-a))):(e.sortIndex=u,n(l,e),m||h||(m=!0,L(E))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},7983:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,o={}){if(o=Object.assign({},r,o),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==o.skipLike&&o.skipLike.test(i))return e;if(o.hex&&t.test(i))return Number.parseInt(i,16);{const t=n.exec(i);if(t){const n=t[1],r=t[2];let u=(a=t[3])&&-1!==a.indexOf(".")?("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1)),a):a;const s=t[4]||t[6];if(!o.leadingZeros&&r.length>0&&n&&"."!==i[2])return e;if(!o.leadingZeros&&r.length>0&&!n&&"."!==i[1])return e;{const t=Number(i),a=""+t;return-1!==a.search(/[eE]/)||s?o.eNotation?t:e:-1!==i.indexOf(".")?"0"===a&&""===u||a===u||n&&a==="-"+u?t:e:r?u===a||n+u===a?t:e:i===a||i===n+a?t:e}}return e}var a}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=o(4848),t=o(7414),n=o.n(t);function r(e){return function(t,n){return n.mode===e}}var i=r("onBoot"),a=r("renderPage"),u=r("renderConfigScreen"),s=r("renderModal"),l=r("renderItemFormSidebarPanel"),c=r("renderItemFormSidebar"),f=r("renderItemFormOutlet"),p=r("renderFieldExtension"),d=r("renderManualFieldExtensionConfigScreen"),h=r("renderAssetSource"),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)},y=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function v(e){return function(t,n){if(!e)return{};for(var r={},o=0,i=t;o<i.length;o++){var a=i[o],u=n.itemTypes[a.relationships.item_type.data.id];r[a.id]=e(a,m(m({},n),{itemType:u}))}return r}}var g=function(e){var t=null,n=function(n){var r=void 0===n?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,function(){for(var e=document.querySelectorAll("body *"),t=0,n=0;n<e.length;n++)t=Math.max(e[n].getBoundingClientRect().bottom,t);return t}()):n;r!==t&&(e.setHeight(r),t=r)},r=null,o=null,i=function(){return n()};return{updateHeight:n,startAutoResizer:function(){n(),r||(r=new ResizeObserver(i)).observe(document.documentElement),o||(o=new MutationObserver(i)).observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},stopAutoResizer:function(){r&&(r.disconnect(),r=null),o&&(o.disconnect(),o=null)}}},b=o(6540),w=o.t(b,2),_=o(6942),E=o.n(_),S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)};function x(e){return e===e.toLowerCase()?e:e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}function O(e,t){return void 0===t&&(t=!1),S({padding:t?void 0:e.bodyPadding.map((function(e){return"".concat(e,"px")})).join(" ")},Object.fromEntries(Object.entries(e.theme).flatMap((function(e){var t,n=e[0],r=e[1];return[["--".concat(x(n)),r],["--".concat(x("".concat(n,"RgbComponents"))),(null===(t=r.match(/rgb\((\d+, \d+, \d+)\)/))||void 0===t?void 0:t[1])||void 0]]}))))}const k=JSON.parse('{"v":"_themeVariables_ovgoa_1","J":"_canvas_ovgoa_68"}');var P=(0,b.createContext)(null);function T(e){var t=e.ctx,n=e.children,r=e.noAutoResizer,o=t.mode;return(0,b.useEffect)((function(){if(!["renderPage","renderItemFormSidebar"].includes(o)&&!r){var e=t;return e.startAutoResizer(),function(){e.stopAutoResizer()}}}),[o,r]),b.createElement(P.Provider,{value:t},b.createElement("div",{className:E()(k.v,k.J),style:O(t)},n))}const C=JSON.parse('{"Form":"_Form_5qspp_1","Form__item":"_Form__item_5qspp_5","Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"}');var I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)},N=function(e){var t=e.children,n=e.className,r=e.onSubmit,o=e.spacing,i=void 0===o?"default":o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","onSubmit","spacing"]),u=E()(C.Form,n),s=E()(C.Form__item,C["Form__item--".concat(i)]),l=(0,b.useCallback)((function(e){e.preventDefault(),r&&r(e)}),[r]);return b.createElement("form",I({className:u,onSubmit:l},a),b.Children.map(t,(function(e){return e?b.createElement("div",{className:s},e):null})))};const j=JSON.parse('{"M":"_FieldGroup_uz9ju_1","d":"_FieldGroup__item_uz9ju_5"}');var L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},L.apply(this,arguments)},D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function R(e){var t=e.children,n=e.className,r=D(e,["children","className"]),o=E()(j.M,n);return b.createElement("div",L({},r,{className:o}),b.Children.map(t,(function(e){return b.createElement("div",{className:j.d},e)})))}const F=JSON.parse('{"zw":"_formLabel_tcjrv_1","w9":"_formLabel__code_tcjrv_8","bL":"_formLabel--error_tcjrv_14","Hn":"_formLabel__label_tcjrv_18","aK":"_formLabel__required_tcjrv_30"}');var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A.apply(this,arguments)},M=function(e){var t,n=e.children,r=e.className,o=e.htmlFor,i=e.code,a=e.required,u=void 0!==a&&a,s=e.error,l=void 0!==s&&s,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","htmlFor","code","required","error"]),f=E()(F.zw,r,((t={})[F.bL]=l,t));return b.createElement("label",A({className:f,htmlFor:o},c),b.createElement("span",{className:F.Hn},n,u&&b.createElement("span",{className:F.aK},"*")),i&&b.createElement("span",{className:F.w9},i))};const V=JSON.parse('{"$":"_fieldError_qi0xk_1"}');function z(e){var t=e.children;return b.createElement("div",{className:V.$},t)}const U=JSON.parse('{"s":"_fieldHint_1avon_1"}');function q(e){var t=e.children;return b.createElement("div",{className:U.s},t)}var H=function(){return H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},H.apply(this,arguments)};function B(e){var t=e.id,n=e.label,r=e.hint,o=e.error,i=e.required,a=e.formLabelProps,u=e.children;return b.createElement(b.Fragment,null,b.createElement(M,H({},a,{htmlFor:t,required:i,error:!!o}),n),u,o&&b.createElement(z,null,o),r&&b.createElement(q,null,r))}function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function G(e){var t=function(e){if("object"!=$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(t)?t:t+""}function Y(e,t,n){return(t=G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||X(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ee=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(null,arguments)}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G(r.key),r)}}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ie=function(){return!!e})()}function ae(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ue=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),se=Math.abs,le=String.fromCharCode,ce=Object.assign;function fe(e){return e.trim()}function pe(e,t,n){return e.replace(t,n)}function de(e,t){return e.indexOf(t)}function he(e,t){return 0|e.charCodeAt(t)}function me(e,t,n){return e.slice(t,n)}function ye(e){return e.length}function ve(e){return e.length}function ge(e,t){return t.push(e),e}var be=1,we=1,_e=0,Ee=0,Se=0,xe="";function Oe(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:be,column:we,length:a,return:""}}function ke(e,t){return ce(Oe("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pe(){return Se=Ee>0?he(xe,--Ee):0,we--,10===Se&&(we=1,be--),Se}function Te(){return Se=Ee<_e?he(xe,Ee++):0,we++,10===Se&&(we=1,be++),Se}function Ce(){return he(xe,Ee)}function Ie(){return Ee}function Ne(e,t){return me(xe,e,t)}function je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Le(e){return be=we=1,_e=ye(xe=e),Ee=0,[]}function De(e){return xe="",e}function Re(e){return fe(Ne(Ee-1,Me(91===e?e+2:40===e?e+1:e)))}function Fe(e){for(;(Se=Ce())&&Se<33;)Te();return je(e)>2||je(Se)>3?"":" "}function Ae(e,t){for(;--t&&Te()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Ne(e,Ie()+(t<6&&32==Ce()&&32==Te()))}function Me(e){for(;Te();)switch(Se){case e:return Ee;case 34:case 39:34!==e&&39!==e&&Me(Se);break;case 40:41===e&&Me(e);break;case 92:Te()}return Ee}function Ve(e,t){for(;Te()&&e+Se!==57&&(e+Se!==84||47!==Ce()););return"/*"+Ne(t,Ee-1)+"*"+le(47===e?e:Te())}function ze(e){for(;!je(Ce());)Te();return Ne(e,Ee)}var Ue="-ms-",qe="-moz-",He="-webkit-",Be="comm",$e="rule",Ge="decl",Ye="@keyframes";function We(e,t){for(var n="",r=ve(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Qe(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ge:return e.return=e.return||e.value;case Be:return"";case Ye:return e.return=e.value+"{"+We(e.children,r)+"}";case $e:e.value=e.props.join(",")}return ye(n=We(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ke(e){return De(Xe("",null,null,null,[""],e=Le(e),0,[0],e))}function Xe(e,t,n,r,o,i,a,u,s){for(var l=0,c=0,f=a,p=0,d=0,h=0,m=1,y=1,v=1,g=0,b="",w=o,_=i,E=r,S=b;y;)switch(h=g,g=Te()){case 40:if(108!=h&&58==he(S,f-1)){-1!=de(S+=pe(Re(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Re(g);break;case 9:case 10:case 13:case 32:S+=Fe(h);break;case 92:S+=Ae(Ie()-1,7);continue;case 47:switch(Ce()){case 42:case 47:ge(Ze(Ve(Te(),Ie()),t,n),s);break;default:S+="/"}break;case 123*m:u[l++]=ye(S)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+c:-1==v&&(S=pe(S,/\f/g,"")),d>0&&ye(S)-f&&ge(d>32?et(S+";",r,n,f-1):et(pe(S," ","")+";",r,n,f-2),s);break;case 59:S+=";";default:if(ge(E=Je(S,t,n,l,c,o,u,b,w=[],_=[],f),i),123===g)if(0===c)Xe(S,t,E,E,w,i,f,u,_);else switch(99===p&&110===he(S,3)?100:p){case 100:case 108:case 109:case 115:Xe(e,E,E,r&&ge(Je(e,E,E,0,0,o,u,b,o,w=[],f),_),o,_,f,u,r?w:_);break;default:Xe(S,E,E,E,[""],_,0,u,_)}}l=c=d=0,m=v=1,b=S="",f=a;break;case 58:f=1+ye(S),d=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Pe())continue;switch(S+=le(g),g*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:u[l++]=(ye(S)-1)*v,v=1;break;case 64:45===Ce()&&(S+=Re(Te())),p=Ce(),c=f=ye(b=S+=ze(Ie())),g++;break;case 45:45===h&&2==ye(S)&&(m=0)}}return i}function Je(e,t,n,r,o,i,a,u,s,l,c){for(var f=o-1,p=0===o?i:[""],d=ve(p),h=0,m=0,y=0;h<r;++h)for(var v=0,g=me(e,f+1,f=se(m=a[h])),b=e;v<d;++v)(b=fe(m>0?p[v]+" "+g:pe(g,/&\f/g,p[v])))&&(s[y++]=b);return Oe(e,t,n,0===o?$e:u,s,l,c)}function Ze(e,t,n){return Oe(e,t,n,Be,le(Se),me(e,2,-2),0)}function et(e,t,n,r){return Oe(e,t,n,Ge,me(e,0,r),me(e,r+1,-1),r)}var tt=function(e,t,n){for(var r=0,o=0;r=o,o=Ce(),38===r&&12===o&&(t[n]=1),!je(o);)Te();return Ne(e,Ee)},nt=new WeakMap,rt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nt.get(n))&&!r){nt.set(e,!0);for(var o=[],i=function(e,t){return De(function(e,t){var n=-1,r=44;do{switch(je(r)){case 0:38===r&&12===Ce()&&(t[n]=1),e[n]+=tt(Ee-1,t,n);break;case 2:e[n]+=Re(r);break;case 4:if(44===r){e[++n]=58===Ce()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=le(r)}}while(r=Te());return e}(Le(e),t))}(t,o),a=n.props,u=0,s=0;u<i.length;u++)for(var l=0;l<a.length;l++,s++)e.props[s]=o[u]?i[u].replace(/&\f/g,a[l]):a[l]+" "+i[u]}}},ot=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function it(e,t){switch(function(e,t){return 45^he(e,0)?(((t<<2^he(e,0))<<2^he(e,1))<<2^he(e,2))<<2^he(e,3):0}(e,t)){case 5103:return He+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return He+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return He+e+qe+e+Ue+e+e;case 6828:case 4268:return He+e+Ue+e+e;case 6165:return He+e+Ue+"flex-"+e+e;case 5187:return He+e+pe(e,/(\w+).+(:[^]+)/,He+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return He+e+Ue+"flex-item-"+pe(e,/flex-|-self/,"")+e;case 4675:return He+e+Ue+"flex-line-pack"+pe(e,/align-content|flex-|-self/,"")+e;case 5548:return He+e+Ue+pe(e,"shrink","negative")+e;case 5292:return He+e+Ue+pe(e,"basis","preferred-size")+e;case 6060:return He+"box-"+pe(e,"-grow","")+He+e+Ue+pe(e,"grow","positive")+e;case 4554:return He+pe(e,/([^-])(transform)/g,"$1"+He+"$2")+e;case 6187:return pe(pe(pe(e,/(zoom-|grab)/,He+"$1"),/(image-set)/,He+"$1"),e,"")+e;case 5495:case 3959:return pe(e,/(image-set\([^]*)/,He+"$1$`$1");case 4968:return pe(pe(e,/(.+:)(flex-)?(.*)/,He+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+He+e+e;case 4095:case 3583:case 4068:case 2532:return pe(e,/(.+)-inline(.+)/,He+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ye(e)-1-t>6)switch(he(e,t+1)){case 109:if(45!==he(e,t+4))break;case 102:return pe(e,/(.+:)(.+)-([^]+)/,"$1"+He+"$2-$3$1"+qe+(108==he(e,t+3)?"$3":"$2-$3"))+e;case 115:return~de(e,"stretch")?it(pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==he(e,t+1))break;case 6444:switch(he(e,ye(e)-3-(~de(e,"!important")&&10))){case 107:return pe(e,":",":"+He)+e;case 101:return pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+He+(45===he(e,14)?"inline-":"")+"box$3$1"+He+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(he(e,t+11)){case 114:return He+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return He+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return He+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return He+e+Ue+e+e}return e}var at=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ge:e.return=it(e.value,e.length);break;case Ye:return We([ke(e,{value:pe(e.value,"@","@"+He)})],r);case $e:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return We([ke(e,{props:[pe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return We([ke(e,{props:[pe(t,/:(plac\w+)/,":"+He+"input-$1")]}),ke(e,{props:[pe(t,/:(plac\w+)/,":-moz-$1")]}),ke(e,{props:[pe(t,/:(plac\w+)/,Ue+"input-$1")]})],r)}return""}))}}],ut=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||at,a={},u=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;u.push(e)}));var s,l,c,f,p=[Qe,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],d=(l=[rt,ot].concat(i,p),c=ve(l),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,We(Ke(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ue({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(u),h},st=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},lt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ct(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ft=!1,pt=/[A-Z]|^ms/g,dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ht=function(e){return 45===e.charCodeAt(1)},mt=function(e){return null!=e&&"boolean"!=typeof e},yt=ct((function(e){return ht(e)?e:e.replace(pt,"-$&").toLowerCase()})),vt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dt,(function(e,t,n){return wt={name:t,styles:n,next:wt},t}))}return 1===lt[e]||ht(e)||"number"!=typeof t||0===t?t:t+"px"},gt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function bt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return wt={name:o.name,styles:o.styles,next:wt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)wt={name:a.name,styles:a.styles,next:wt},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=bt(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var u=a;null!=t&&void 0!==t[u]?r+=i+"{"+t[u]+"}":mt(u)&&(r+=yt(i)+":"+vt(i,u)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&ft)throw new Error(gt);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=bt(e,t,a);switch(i){case"animation":case"animationName":r+=yt(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)mt(a[l])&&(r+=yt(i)+":"+vt(i,a[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var u=wt,s=n(e);return wt=u,bt(e,t,s)}}var l=n;if(null==t)return l;var c=t[l];return void 0!==c?c:l}var wt,_t=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Et(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";wt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=bt(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=bt(n,t,e[a]),r&&(o+=i[a]);_t.lastIndex=0;for(var u,s="";null!==(u=_t.exec(o));)s+="-"+u[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:l,styles:o,next:wt}}var St=!!w.useInsertionEffect&&w.useInsertionEffect,xt=St||function(e){return e()},Ot=(St||b.useLayoutEffect,b.createContext("undefined"!=typeof HTMLElement?ut({key:"css"}):null)),kt=(Ot.Provider,function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)(Ot);return e(t,r,n)}))}),Pt=b.createContext({}),Tt={}.hasOwnProperty,Ct="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",It=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return st(t,n,r),xt((function(){return function(e,t,n){st(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Nt=kt((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ct],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var u=Et(i,void 0,b.useContext(Pt));a+=t.key+"-"+u.name;var s={};for(var l in e)Tt.call(e,l)&&"css"!==l&&l!==Ct&&(s[l]=e[l]);return s.className=a,n&&(s.ref=n),b.createElement(b.Fragment,null,b.createElement(It,{cache:t,serialized:u,isStringTag:"string"==typeof o}),b.createElement(o,s))})),jt=Nt,Lt=(o(4146),function(e,t){var n=arguments;if(null==t||!Tt.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=jt,o[1]=function(e,t){var n={};for(var r in t)Tt.call(t,r)&&(n[r]=t[r]);return n[Ct]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return b.createElement.apply(null,o)});function Dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Et(t)}var Rt=o(961);const Ft=Math.min,At=Math.max,Mt=Math.round,Vt=Math.floor,zt=e=>({x:e,y:e});function Ut(e){return Bt(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ht(e){var t;return null==(t=(Bt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Bt(e){return e instanceof Node||e instanceof qt(e).Node}function $t(e){return e instanceof Element||e instanceof qt(e).Element}function Gt(e){return e instanceof HTMLElement||e instanceof qt(e).HTMLElement}function Yt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot)}function Wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qt(e){return qt(e).getComputedStyle(e)}function Kt(e){const t=function(e){if("html"===Ut(e))return e;const t=e.assignedSlot||e.parentNode||Yt(e)&&e.host||Ht(e);return Yt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Ut(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&Wt(t)?t:Kt(t)}function Xt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Kt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=qt(o);return i?t.concat(a,a.visualViewport||[],Wt(o)?o:[],a.frameElement&&n?Xt(a.frameElement):[]):t.concat(o,Xt(o,[],n))}function Jt(e){return $t(e)?e:e.contextElement}function Zt(e){const t=Jt(e);if(!Gt(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=Mt(n)!==i||Mt(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}(t);let a=(i?Mt(n.width):n.width)/r,u=(i?Mt(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}const en=zt(0);function tn(e){const t=qt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function nn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Jt(e);let a=zt(1);t&&(r?$t(r)&&(a=Zt(r)):a=Zt(e));const u=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==qt(e))&&t}(i,n,r)?tn(i):zt(0);let s=(o.left+u.x)/a.x,l=(o.top+u.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i){const e=qt(i),t=r&&$t(r)?qt(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Zt(o),t=o.getBoundingClientRect(),r=Qt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,c*=e.x,f*=e.y,s+=i,l+=a,n=qt(o),o=n.frameElement}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:c,height:f,x:s,y:l})}const rn=b.useLayoutEffect;var on=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],an=function(){};function un(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function sn(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(un(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ln=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===$(e)&&null!==e?[e]:[];var t},cn=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Q({},Z(e,on))},fn=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function pn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function dn(e){return pn(e)?window.pageYOffset:e.scrollTop}function hn(e,t){pn(e)?window.scrollTo(0,t):e.scrollTop=t}function mn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:an,o=dn(e),i=t-o,a=0;!function t(){var u,s=i*((u=(u=a+=10)/n-1)*u*u+1)+o;hn(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function yn(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?hn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&hn(e,Math.max(t.offsetTop-o,0))}function vn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var gn=!1,bn={get passive(){return gn=!0}},wn="undefined"!=typeof window?window:{};wn.addEventListener&&wn.removeEventListener&&(wn.addEventListener("p",an,bn),wn.removeEventListener("p",an,!1));var _n=gn;function En(e){return null!=e}function Sn(e,t,n){return e?t:n}var xn=["children","innerProps"],On=["children","innerProps"];var kn,Pn,Tn,Cn=function(e){return"auto"===e?"bottom":e},In=(0,b.createContext)(null),Nn=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,u=e.theme,s=((0,b.useContext)(In)||{}).setPortalPlacement,l=(0,b.useRef)(null),c=J((0,b.useState)(r),2),f=c[0],p=c[1],d=J((0,b.useState)(null),2),h=d[0],m=d[1],y=u.spacing.controlHeight;return rn((function(){var e=l.current;if(e){var t="fixed"===i,u=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,f=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,h=p.height,m=p.top,y=n.offsetParent.getBoundingClientRect().top,v=a||pn(c=s)?window.innerHeight:c.clientHeight,g=dn(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=y-w,E=v-m,S=_+g,x=f-g-m,O=d-v+g+b,k=g+m-w,P=160;switch(o){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!a)return i&&mn(s,O,P),{placement:"bottom",maxHeight:t};if(!a&&x>=r||a&&E>=r)return i&&mn(s,O,P),{placement:"bottom",maxHeight:a?E-b:x-b};if("auto"===o||a){var T=t,C=a?_:S;return C>=r&&(T=Math.min(C-b-u,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return i&&hn(s,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&mn(s,k,P),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&_>=r){var I=t;return(!a&&S>=r||a&&_>=r)&&(I=a?_-w:S-w),i&&mn(s,k,P),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});p(u.maxHeight),m(u.placement),null==s||s(u.placement)}}),[r,o,i,a,n,s,y]),t({ref:l,placerProps:Q(Q({},e),{},{placement:h||Cn(o),maxHeight:f})})},jn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Q({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Ln=jn,Dn=jn,Rn=["size"],Fn=["innerProps","isRtl","size"],An={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Mn=function(e){var t=e.size,n=Z(e,Rn);return Lt("svg",te({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:An},n))},Vn=function(e){return Lt(Mn,te({size:20},e),Lt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},zn=function(e){return Lt(Mn,te({size:20},e),Lt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Un=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Q({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},qn=Un,Hn=Un,Bn=function(){var e=Dt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(kn||(Pn=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Tn||(Tn=Pn.slice(0)),kn=Object.freeze(Object.defineProperties(Pn,{raw:{value:Object.freeze(Tn)}})))),$n=function(e){var t=e.delay,n=e.offset;return Lt("span",{css:Dt({animation:"".concat(Bn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Gn=["data"],Yn=["innerRef","isDisabled","isHidden","inputClassName"],Wn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Qn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Q({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Wn)},Kn=function(e){return Q({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Wn)},Xn=function(e){var t=e.children,n=e.innerProps;return Lt("div",n,t)},Jn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({},fn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Lt(Vn,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Lt("div",te({ref:o},fn(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({},fn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Lt(zn,null))},DownChevron:zn,CrossIcon:Vn,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,u=e.innerProps,s=e.label,l=e.theme,c=e.selectProps;return Lt("div",te({},fn(e,"group",{group:!0}),u),Lt(i,te({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:o,cx:n}),s),Lt("div",null,t))},GroupHeading:function(e){var t=cn(e);t.data;var n=Z(t,Gn);return Lt("div",te({},fn(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({},fn(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Lt("span",te({},t,fn(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=cn(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,u=r.inputClassName,s=Z(r,Yn);return Lt("div",te({},fn(e,"input",{"input-container":!0}),{"data-value":n||""}),Lt("input",te({className:t({input:!0},u),ref:o,style:Kn(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Z(e,Fn);return Lt("div",te({},fn(Q(Q({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Lt($n,{delay:0,offset:n}),Lt($n,{delay:160,offset:!0}),Lt($n,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Lt("div",te({},fn(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Lt("div",te({},fn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,u=(0,b.useRef)(null),s=(0,b.useRef)(null),l=J((0,b.useState)(Cn(i)),2),c=l[0],f=l[1],p=(0,b.useMemo)((function(){return{setPortalPlacement:f}}),[]),d=J((0,b.useState)(null),2),h=d[0],m=d[1],y=(0,b.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[c]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,c,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);rn((function(){y()}),[y]);var v=(0,b.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&u.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=Jt(e),c=o||i?[...l?Xt(l):[],...Xt(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=l&&u?function(e,t){let n,r=null;const o=Ht(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),i();const{left:l,top:c,width:f,height:p}=e.getBoundingClientRect();if(u||t(),!f||!p)return;const d={rootMargin:-Vt(c)+"px "+-Vt(o.clientWidth-(l+f))+"px "+-Vt(o.clientHeight-(c+p))+"px "+-Vt(l)+"px",threshold:At(0,Ft(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...d,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,d)}r.observe(e)}(!0),i}(l,n):null;let p,d=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!s&&h.observe(l),h.observe(t));let m=s?nn(e):null;return s&&function t(){const r=nn(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(p)}}(r,u.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);rn((function(){v()}),[v]);var g=(0,b.useCallback)((function(e){u.current=e,v()}),[v]);if(!t&&"fixed"!==a||!h)return null;var w=Lt("div",te({ref:g},fn(Q(Q({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Lt(In.Provider,{value:p},t?(0,Rt.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Z(e,On);return Lt("div",te({},fn(Q(Q({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Z(e,xn);return Lt("div",te({},fn(Q(Q({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,u=e.selectProps,s=n.Container,l=n.Label,c=n.Remove;return Lt(s,{data:r,innerProps:Q(Q({},fn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},Lt(l,{data:r,innerProps:Q({},fn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),Lt(c,{data:r,innerProps:Q(Q({},fn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:Xn,MultiValueLabel:Xn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({role:"button"},n),t||Lt(Vn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Lt("div",te({},fn(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Lt("div",te({},fn(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Lt("div",te({},fn(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Lt("div",te({},fn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Lt("div",te({},fn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Zn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function er(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Zn(r)&&Zn(o)))return!1;var r,o;return!0}for(var tr={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},nr=function(e){return Lt("span",te({css:tr},e))},rr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,u=e.isDisabled,s=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var f=u?" disabled":"",p="".concat(s?" selected":"").concat(f);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},or=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,u=e.selectProps,s=e.id,l=e.isAppleDevice,c=u.ariaLiveMessages,f=u.getOptionLabel,p=u.inputValue,d=u.isMulti,h=u.isOptionDisabled,m=u.isSearchable,y=u.menuIsOpen,v=u.options,g=u.screenReaderStatus,w=u.tabSelectsValue,_=u.isLoading,E=u["aria-label"],S=u["aria-live"],x=(0,b.useMemo)((function(){return Q(Q({},rr),c||{})}),[c]),O=(0,b.useMemo)((function(){var e="";if(t&&x.onChange){var n=t.option,r=t.options,o=t.removedValue,i=t.removedValues,u=t.value,s=o||n||function(e){return Array.isArray(e)?null:e}(u),l=s?f(s):"",c=r||i||void 0,p=c?c.map(f):[],d=Q({isDisabled:s&&h(s,a),label:l,labels:p},t);e=x.onChange(d)}return e}),[t,x,h,a,f]),k=(0,b.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&x.onFocus){var u={focused:t,label:f(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=x.onFocus(u)}return e}),[n,r,f,h,x,o,a,l]),P=(0,b.useMemo)((function(){var e="";if(y&&v.length&&!_&&x.onFilter){var t=g({count:o.length});e=x.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,y,x,v,g,_]),T="initial-input-focus"===(null==t?void 0:t.action),C=(0,b.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":y?"menu":"input";e=x.guidance({"aria-label":E,context:t,isDisabled:n&&h(n,a),isMulti:d,isSearchable:m,tabSelectsValue:w,isInitialFocus:T})}return e}),[E,n,r,d,h,m,y,x,a,w,T]),I=Lt(b.Fragment,null,Lt("span",{id:"aria-selection"},O),Lt("span",{id:"aria-focused"},k),Lt("span",{id:"aria-results"},P),Lt("span",{id:"aria-guidance"},C));return Lt(b.Fragment,null,Lt(nr,{id:s},T&&I),Lt(nr,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!T&&I))},ir=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ar=new RegExp("["+ir.map((function(e){return e.letters})).join("")+"]","g"),ur={},sr=0;sr<ir.length;sr++)for(var lr=ir[sr],cr=0;cr<lr.letters.length;cr++)ur[lr.letters[cr]]=lr.base;var fr=function(e){return e.replace(ar,(function(e){return ur[e]}))},pr=function(e,t){void 0===t&&(t=er);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(fr),dr=function(e){return e.replace(/^\s+|\s+$/g,"")},hr=function(e){return"".concat(e.label," ").concat(e.value)},mr=["innerRef"];function yr(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=J(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=J(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Z(e,mr),"onExited","in","enter","exit","appear");return Lt("input",te({ref:t},n,{css:Dt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var vr=["boxSizing","height","overflow","paddingRight","position"],gr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function br(e){e.preventDefault()}function wr(e){e.stopPropagation()}function _r(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Er(){return"ontouchstart"in window||navigator.maxTouchPoints}var Sr=!("undefined"==typeof window||!window.document||!window.document.createElement),xr=0,Or={capture:!1,passive:!1},kr=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Pr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Tr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,b.useRef)(!1),u=(0,b.useRef)(!1),s=(0,b.useRef)(0),l=(0,b.useRef)(null),c=(0,b.useCallback)((function(e,t){if(null!==l.current){var s=l.current,c=s.scrollTop,f=s.scrollHeight,p=s.clientHeight,d=l.current,h=t>0,m=f-p-c,y=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>m?(n&&!a.current&&n(e),d.scrollTop=f,y=!0,a.current=!0):!h&&-t>c&&(o&&!u.current&&o(e),d.scrollTop=0,y=!0,u.current=!0),y&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),f=(0,b.useCallback)((function(e){c(e,e.deltaY)}),[c]),p=(0,b.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,b.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;c(e,t)}),[c]),h=(0,b.useCallback)((function(e){if(e){var t=!!_n&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,b.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,b.useEffect)((function(){if(t){var e=l.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,b.useRef)({}),i=(0,b.useRef)(null),a=(0,b.useCallback)((function(e){if(Sr){var t=document.body,n=t&&t.style;if(r&&vr.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&xr<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+i||0;Object.keys(gr).forEach((function(e){var t=gr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&Er()&&(t.addEventListener("touchmove",br,Or),e&&(e.addEventListener("touchstart",_r,Or),e.addEventListener("touchmove",wr,Or))),xr+=1}}),[r]),u=(0,b.useCallback)((function(e){if(Sr){var t=document.body,n=t&&t.style;xr=Math.max(xr-1,0),r&&xr<1&&vr.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Er()&&(t.removeEventListener("touchmove",br,Or),e&&(e.removeEventListener("touchstart",_r,Or),e.removeEventListener("touchmove",wr,Or)))}}),[r]);return(0,b.useEffect)((function(){if(t){var e=i.current;return a(e),function(){u(e)}}}),[t,a,u]),function(e){i.current=e}}({isEnabled:n});return Lt(b.Fragment,null,n&&Lt("div",{onClick:kr,css:Pr}),t((function(e){o(e),i(e)})))}var Cr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ir=function(e){var t=e.name,n=e.onFocus;return Lt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Cr,value:"",onChange:function(){}})};function Nr(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function jr(){return Nr(/^Mac/i)}var Lr={clearIndicator:Hn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Q({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:qn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Q({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Q({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Q(Q({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Qn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Q({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Dn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,u=o.colors;return Q((Y(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Y(n,"position","absolute"),Y(n,"width","100%"),Y(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Q({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Q({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Q({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Q({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Ln,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,u=i.colors;return Q({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Q({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Q({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Q({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Dr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Rr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:vn(),captureMenuScroll:!vn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Q({ignoreCase:!0,ignoreAccents:!0,stringify:hr,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,s=a?dr(t):t,l=a?dr(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=pr(s),l=fr(l)),"start"===u?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Fr(e,t,n,r){return{type:"option",data:t,isDisabled:Br(e,t,n),isSelected:$r(e,t,n),label:qr(e,t),value:Hr(e,t),index:r}}function Ar(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Fr(e,n,t,r)})).filter((function(t){return zr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Fr(e,n,t,r);return zr(e,i)?i:void 0})).filter(En)}function Mr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ae(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Vr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ae(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function zr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!Yr(e)||!i)&&Gr(e,{label:a,value:u,data:o},r)}var Ur=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},qr=function(e,t){return e.getOptionLabel(t)},Hr=function(e,t){return e.getOptionValue(t)};function Br(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function $r(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Hr(e,t);return n.some((function(t){return Hr(e,t)===r}))}function Gr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Yr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Wr=1,Qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(n,e);var t=function(e){var t=ie();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=jr()||Nr(/^iPhone/i)||Nr(/^iPad/i)||jr()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,u=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:u}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,u=o&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(u){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(ae(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=Sn(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Sn(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Sn(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Ur(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Vr(Ar(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sn.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return qr(r.props,e)},r.getOptionValue=function(e){return Hr(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Lr[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Q(Q({},Jn),e.components);var e},r.buildCategorizedOptions=function(){return Ar(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Mr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Q({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&pn(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Yr(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,y=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():u&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!f||!h||p&&r.isOptionSelected(h,y))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):u&&i&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Wr),r.state.selectValue=ln(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=Ur(o,i[a])}return r}return function(e,t,n){t&&ne(e.prototype,t),n&&ne(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&yn(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(yn(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var u=i.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Dr):Q(Q({},Dr),this.props.theme):Dr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,u=this.props,s=u.isMulti,l=u.isRtl,c=u.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:i,selectProps:u,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Br(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return $r(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Gr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,u=e.menuIsOpen,s=e.required,l=this.getComponents().Input,c=this.state,f=c.inputIsHidden,p=c.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=Q(Q(Q({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?b.createElement(l,te({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):b.createElement(yr,te({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:an,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,s=this.commonProps,l=this.props,c=l.controlShouldRenderValue,f=l.isDisabled,p=l.isMulti,d=l.inputValue,h=l.placeholder,m=this.state,y=m.selectValue,v=m.focusedValue,g=m.isFocused;if(!this.hasValue()||!c)return d?null:b.createElement(u,te({},s,{key:"placeholder",isDisabled:f,isFocused:g,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return y.map((function(t,a){var u=t===v,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return b.createElement(n,te({},s,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:f,key:l,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var w=y[0];return b.createElement(a,te({},s,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,te({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?b.createElement(e,te({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return b.createElement(n,te({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,te({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,c=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,g=p.maxMenuHeight,w=p.menuIsOpen,_=p.menuPlacement,E=p.menuPosition,S=p.menuPortalTarget,x=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,k=p.noOptionsMessage,P=p.onMenuScrollToTop,T=p.onMenuScrollToBottom;if(!w)return null;var C,I=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,u=t.label,s=t.value,p=f===o,d=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),y={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return b.createElement(l,te({},c,{innerProps:y,data:o,isDisabled:i,isSelected:a,key:m,label:u,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,u="".concat(e.getElementId("group"),"-").concat(a),s="".concat(u,"-heading");return b.createElement(n,te({},c,{key:u,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(m){var N=y({inputValue:h});if(null===N)return null;C=b.createElement(u,c,N)}else{var j=k({inputValue:h});if(null===j)return null;C=b.createElement(s,c,j)}var L={minMenuHeight:v,maxMenuHeight:g,menuPlacement:_,menuPosition:E,menuShouldScrollIntoView:O},D=b.createElement(Nn,te({},c,L),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,u=r.maxHeight;return b.createElement(o,te({},c,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),b.createElement(Tr,{captureEnabled:d,onTopArrive:P,onBottomArrive:T,lockEnabled:x},(function(t){return b.createElement(i,te({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":c.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:u,focusedOption:f}),C)})))}));return S||"fixed"===E?b.createElement(a,te({},c,{appendTo:S,controlElement:this.controlRef,menuPlacement:_,menuPosition:E}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,u=this.state.selectValue;if(a&&!this.hasValue()&&!r)return b.createElement(Ir,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=u.map((function(t){return e.getOptionValue(t)})).join(n);return b.createElement("input",{name:i,type:"hidden",value:s})}var l=u.length>0?u.map((function(t,n){return b.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.createElement("input",{name:i,type:"hidden",value:""});return b.createElement("div",null,l)}var c=u[0]?this.getOptionValue(u[0]):"";return b.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return b.createElement(or,te({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,u=i.id,s=i.isDisabled,l=i.menuIsOpen,c=this.state.isFocused,f=this.commonProps=this.getCommonProps();return b.createElement(r,te({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:c}),this.renderLiveRegion(),b.createElement(t,te({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:c,menuIsOpen:l}),b.createElement(o,te({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),b.createElement(n,te({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,u=t.prevWasFocused,s=t.instancePrefix,l=e.options,c=e.value,f=e.menuIsOpen,p=e.inputValue,d=e.isMulti,h=ln(c),m={};if(n&&(c!==n.value||l!==n.options||f!==n.menuIsOpen||p!==n.inputValue)){var y=f?function(e,t){return Mr(Ar(e,t))}(e,h):[],v=f?Vr(Ar(e,h),"".concat(s,"-option")):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,y);m={selectValue:h,focusedOption:b,focusedOptionId:Ur(v,b),focusableOptionsWithIds:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=i,E=a&&u;return a&&!E&&(_={value:Sn(d,h,h[0]||null),options:h,action:"initial-input-focus"},E=!u),"initial-input-focus"===(null==i?void 0:i.action)&&(_=null),Q(Q(Q({},m),w),{},{prevProps:e,ariaSelection:_,prevWasFocused:E})}}]),n}(b.Component);Qr.defaultProps=Rr;var Kr=(0,b.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,u=e.inputValue,s=e.menuIsOpen,l=e.onChange,c=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=Z(e,ee),m=J((0,b.useState)(void 0!==u?u:n),2),y=m[0],v=m[1],g=J((0,b.useState)(void 0!==s?s:o),2),w=g[0],_=g[1],E=J((0,b.useState)(void 0!==d?d:a),2),S=E[0],x=E[1],O=(0,b.useCallback)((function(e,t){"function"==typeof l&&l(e,t),x(e)}),[l]),k=(0,b.useCallback)((function(e,t){var n;"function"==typeof c&&(n=c(e,t)),v(void 0!==n?n:e)}),[c]),P=(0,b.useCallback)((function(){"function"==typeof p&&p(),_(!0)}),[p]),T=(0,b.useCallback)((function(){"function"==typeof f&&f(),_(!1)}),[f]),C=void 0!==u?u:y,I=void 0!==s?s:w,N=void 0!==d?d:S;return Q(Q({},h),{},{inputValue:C,menuIsOpen:I,onChange:O,onInputChange:k,onMenuClose:T,onMenuOpen:P,value:N})}(e);return b.createElement(Qr,te({ref:t},n))})),Xr=Kr,Jr=function(){return Jr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jr.apply(this,arguments)},Zr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},eo=function(e){return Jr(Jr({},e),{borderRadius:0,colors:Jr(Jr({},e.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},to=function(e,t){return(0,b.useMemo)((function(){return{placeholder:function(e){return Jr(Jr({},e),{color:"var(--placeholder-body-color)"})},container:function(e){return Jr(Jr({},e),{fontSize:"inherit"})},control:function(n,r){var o=r.isFocused,i=n;return i=Jr(Jr({},i),{minHeight:40}),Jr(Jr({},i),o?{borderColor:t?"var(--alert-color)":"var(--accent-color)",backgroundColor:e?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(t?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:t?"var(--alert-color)":"var(--accent-color)"}}:{borderColor:t?"var(--alert-color)":"var(--border-color)",backgroundColor:e?"var(--disabled-color)":"white","&:hover":{borderColor:t?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(e){return Jr(Jr({},e),{cursor:"pointer"})},menu:function(e){return Jr(Jr({},e),{zIndex:1e3,minWidth:250})},input:function(e){return Jr(Jr({},e),{boxShadow:"none","input:focus":{boxShadow:"none"}})},multiValue:function(e){return Jr(Jr({},e),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(e){return Jr(Jr({},e),{fontSize:"inherit",padding:3})}}}),[e,t])};function no(e){var t=e.isDisabled,n=e.error,r=Zr(e,["isDisabled","error"]),o=to(t,n);return b.createElement(Xr,Jr({},r,{isDisabled:t,theme:eo,styles:o}))}var ro,oo,io=function(){return io=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},io.apply(this,arguments)};function ao(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.placeholder,s=e.formLabelProps,l=e.value,c=e.onChange,f=e.selectInputProps;return b.createElement(B,{formLabelProps:s,id:t,required:a,error:i,hint:o,label:r},b.createElement(no,io({},f,{id:t,name:n,value:l,placeholder:u,onChange:c,error:!!i})))}!function(e){e.MainNavigationTabs="mainNavigationTabs",e.ContentAreaSidebarItems="contentAreaSidebarItems",e.SettingsAreaSidebarItemGroups="settingsAreaSidebarItemGroups"}(ro||(ro={})),function(e){e.Before="before",e.After="after",e.Content="content",e.Media="media",e.Schema="schema",e.Configuration="configuration",e.CdaPlayground="cdaPlayground",e.Properties="properties",e.Permissions="permissions",e.MenuItems="menuItems",e.SeoPreferences="seoPreferences"}(oo||(oo={}));var uo="Upload SVG",so="svg-uploader",lo="file-upload",co="svg-raw-viewer-modal",fo="New SVG",po=[{label:"Top menu",value:ro.MainNavigationTabs},{label:"Side menu",value:ro.ContentAreaSidebarItems},{label:"Settings menu",value:ro.SettingsAreaSidebarItemGroups}],ho=[{label:"Before menu item",value:oo.Before},{label:"After menu item",value:oo.After}],mo=[{label:"Menu items",value:oo.MenuItems},{label:"Seo preferences",value:oo.SeoPreferences}],yo=[{label:"Properties",value:oo.Properties},{label:"Permissions",value:oo.Permissions}],vo=[{label:"Content",value:oo.Content},{label:"Media",value:oo.Media},{label:"Schema",value:oo.Schema},{label:"Configuration",value:oo.Configuration},{label:"CDA Playground",value:oo.CdaPlayground}];function go(e){return e===ro.SettingsAreaSidebarItemGroups?yo:e===ro.ContentAreaSidebarItems?mo:vo}var bo=function(){return bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bo.apply(this,arguments)};function wo(t){var n=t.ctx,r=n.plugin.attributes.parameters,o=(null==r?void 0:r.pageType)||po[0],i=(null==r?void 0:r.placement)||ho[0],a=(0,b.useMemo)((function(){return(null==r?void 0:r.menuItemPlacement)||go(o.value)[0]}),[null==r?void 0:r.menuItemPlacement,o.value]);function u(e){n.updatePluginParameters(bo(bo({},r),e)),n.notice("Settings updated successfully!")}return(0,e.jsxs)(T,{ctx:n,children:[(0,e.jsx)("p",{children:"This DatoCMS plugin"}),(0,e.jsx)(N,{children:(0,e.jsxs)(R,{children:[(0,e.jsx)(ao,{name:"pageType",id:"pageType",label:"Where do you want to show the menu item?",value:o,selectInputProps:{options:po},onChange:function(e){u({pageType:e,menuItemPlacement:go(e.value)[0]})}}),(0,e.jsx)(ao,{name:"placement",id:"placement",label:"Show the menu item before or after the other menu items?",value:i,selectInputProps:{options:ho},onChange:function(e){u({placement:e})}}),(0,e.jsx)(ao,{name:"menuItemPlacement",id:"menuItemPlacement",label:"".concat("before"===i.value?"Before":"After"," which menu item do you want to show the menu item?"),value:a,selectInputProps:{options:go(o.value)},onChange:function(e){u({menuItemPlacement:e})}})]})})]})}const _o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var Eo,So=new Uint8Array(16);function xo(){if(!Eo&&!(Eo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Eo(So)}for(var Oo=[],ko=0;ko<256;++ko)Oo.push((ko+256).toString(16).slice(1));const Po=function(e,t,n){if(_o.randomUUID&&!t&&!e)return _o.randomUUID();var r=(e=e||{}).random||(e.rng||xo)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e,t=0){return(Oo[e[t+0]]+Oo[e[t+1]]+Oo[e[t+2]]+Oo[e[t+3]]+"-"+Oo[e[t+4]]+Oo[e[t+5]]+"-"+Oo[e[t+6]]+Oo[e[t+7]]+"-"+Oo[e[t+8]]+Oo[e[t+9]]+"-"+Oo[e[t+10]]+Oo[e[t+11]]+Oo[e[t+12]]+Oo[e[t+13]]+Oo[e[t+14]]+Oo[e[t+15]]).toLowerCase()}(r)},To=JSON.parse('{"HJ":"_Spinner--inline_oumod_1","Gk":"_Spinner--centered_oumod_7","FY":"_Spinner__bar_oumod_13"}');var Co=function(){return Co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Co.apply(this,arguments)};function Io(e){for(var t,n=e.size,r=void 0===n?32:n,o=e.placement,i=void 0===o?"inline":o,a=e.style,u=void 0===a?{}:a,s=[],l=0;l<12;l+=1){var c={};c.animationDelay="".concat((l-12)/10,"s"),c.transform="rotate(".concat(30*l,"deg) translate(146%)"),s.push(b.createElement("div",{style:c,className:To.FY,key:l}))}var f={width:.5*r,height:.5*r};return"inline"===i&&(f.marginLeft=.5*r,f.transform="translateY(33%)"),b.createElement("div",{className:E()((t={},t[To.HJ]="inline"===i,t[To.Gk]="centered"===i,t)),style:Co(Co({},u),f)},s)}const No=JSON.parse('{"button":"_button_474wk_1","disabled":"_disabled_474wk_30","buttonType-muted":"_buttonType-muted_474wk_34","buttonType-primary":"_buttonType-primary_474wk_50","buttonType-negative":"_buttonType-negative_474wk_71","buttonSize-xxs":"_buttonSize-xxs_474wk_88","buttonSize-xs":"_buttonSize-xs_474wk_93","buttonSize-s":"_buttonSize-s_474wk_98","buttonSize-m":"_buttonSize-m_474wk_103","buttonSize-l":"_buttonSize-l_474wk_108","buttonSize-xl":"_buttonSize-xl_474wk_113","fullWidth":"_fullWidth_474wk_118","button__leftIcon":"_button__leftIcon_474wk_124","button__rightIcon":"_button__rightIcon_474wk_125"}');function jo(e){var t,n=e.children,r=e.className,o=e.disabled,i=e.buttonType,a=void 0===i?"muted":i,u=e.buttonSize,s=void 0===u?"m":u,l=e.fullWidth,c=e.onClick,f=e.style,p=e.leftIcon,d=e.rightIcon,h=e.type,m=void 0===h?"button":h;return b.createElement("button",{type:m,className:E()(No.button,No["buttonType-".concat(a)],No["buttonSize-".concat(s)],(t={},t[No.disabled]=o,t[No.fullWidth]=l,t),r),disabled:o,onClick:c,style:f},p&&b.createElement("span",{className:No.button__leftIcon},p),n&&b.createElement("span",null,n),d&&b.createElement("span",{className:No.button__rightIcon},d))}const Lo=JSON.parse('{"Te":"_switchInput__inner_1knbg_1","td":"_switchInput_1knbg_1","I4":"_switchInput__checked_1knbg_47","rf":"_switchInput__disabled_1knbg_60"}');var Do=function(){return Do=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Do.apply(this,arguments)},Ro=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Fo(e){var t,n=e.className,r=e.value,o=e.disabled,i=e.onClick,a=e.onChange,u=e.onKeyDown,s=Ro(e,["className","value","disabled","onClick","onChange","onKeyDown"]);function l(e,t){!o&&a&&a(e,t)}var c=E()(Lo.td,n,((t={})[Lo.I4]=r,t[Lo.rf]=o,t));return b.createElement("button",Do({},s,{type:"button",role:"switch","aria-checked":r,disabled:o,className:c,onKeyDown:function(e){"ArrowLeft"===e.key?l(!1,e):"ArrowRight"===e.key&&l(!0,e),null==u||u(e)},onClick:function(e){l(!r,e),null==i||i(e)}}),b.createElement("span",{className:Lo.Te}))}const Ao=JSON.parse('{"Ai":"_switchField__flex_16z4j_1","rO":"_switchField__switchInput_16z4j_6","Tb":"_switchField__label_16z4j_10","s8":"_switchField__below_16z4j_22"}');var Mo=function(){return Mo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mo.apply(this,arguments)};function Vo(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.formLabelProps,s=e.value,l=e.onChange,c=e.switchInputProps;return b.createElement(b.Fragment,null,b.createElement("div",{className:Ao.Ai},b.createElement("div",{className:Ao.rO},b.createElement(Fo,Mo({},c,{name:n,value:s,onChange:l}))),b.createElement(M,Mo({},u,{htmlFor:t,required:a,className:E()(Ao.Tb,null==u?void 0:u.className),error:!!i}),r)),(o||i)&&b.createElement("div",{className:Ao.s8},i&&b.createElement(z,null,i),o&&b.createElement(q,null,o)))}var zo=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Uo="__ARRAY_INDEX__";function qo(e){return e.reduce((function(e,t,n){return 0===n?t:t===Uo?"".concat(e,"[]"):"".concat(e,"[").concat(t,"]")}),"")}function Ho(e){if("number"==typeof e||"string"==typeof e)return e.toString();if(!0===e)return"true";if(!1===e)return"false";throw"Don't know how to serialize param value ".concat(JSON.stringify(e))}function Bo(e,t){void 0===t&&(t=[]);var n=[];if("number"==typeof e||"string"==typeof e||"boolean"==typeof e)n.push([qo(t),Ho(e)]);else if("object"==typeof e)if(Array.isArray(e))for(var r=0,o=e;r<o.length;r++)for(var i=0,a=Bo(o[r],zo(zo([],t,!0),[Uo],!1));i<a.length;i++){var u=a[i];n.push(u)}else if(e)for(var s=0,l=Object.entries(e);s<l.length;s++)for(var c=l[s],f=c[0],p=0,d=Bo(c[1],zo(zo([],t,!0),[f],!1));p<d.length;p++)u=d[p],n.push(u);return n}var $o,Go=($o=function(e,t){return $o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},$o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Yo={BATCH_DATA_VALIDATION_IN_PROGRESS:"The schema of this model changed, we're re-running validations over every record in background. Please retry with this operation in a few seconds!",INSUFFICIENT_PERMISSIONS:"Your role does not permit this action",MAINTENANCE_MODE:"The project is currently in maintenance mode!",DELETE_RESTRICTION:"Sorry, but you cannot delete this resource, as it's currently used/referenced elsewhere!",INVALID_CREDENTIALS:"Credentials are incorrect!",INVALID_EMAIL:"Email address is incorrect!",INVALID_FORMAT:"The format of the parameters passed is incorrect, take a look at the details of the error to know what's wrong!",ITEM_LOCKED:"The operation cannot be completed as some other user is currently editing this record!",LINKED_FROM_PUBLISHED_ITEMS:"Couldn't unpublish the record, as some published records are linked to it!",PLAN_UPGRADE_REQUIRED:"Cannot proceed, please upgrade plan!",PUBLISHED_CHILDREN:"Couldn't unpublish the record, some children records are still published!",REQUIRED_2FA_SETUP:"This project requires every user to turn on 2-factor authentication! Please go to your Dashboard and activate it! (https://dashboard.datocms.com/account/setup-2fa)",REQUIRED_BY_ASSOCIATION:"Cannot delete the record, as it's required by other records:",STALE_ITEM_VERSION:"Someone else made a change while you were editing this record, please refresh the page!",TITLE_ALREADY_PRESENT:"There can only be one Title field per model",UNPUBLISHED_LINK:"Couldn't publish the record, as it links some unpublished records!",UNPUBLISHED_PARENT:"Couldn't publish the record, as the parent record is not published!",UPLOAD_IS_CURRENTLY_IN_USE:"Couldn't delete this asset, as it's currently used by some records!",UPLOAD_NOT_PASSING_FIELD_VALIDATIONS:"Couldn't update this asset since some records are failing to pass the validations!"},Wo={build_triggers:"You've reached the maximum number of build triggers your plan allows",sandbox_environments:"You've reached the maximum number of environments your plan allows",item_types:"You've reached the maximum number of models your plan allows to create",items:"You've reached the maximum number of records your plan allows to create",locales:"You've reached the maximum number of locales your plan allows",mux_encoding_seconds:"You've reached the maximum video encoding limits of your plan",otp:"Two-factor authentication cannot be on the current plan",plugins:"You've reached the maximum number of plugins your plan allows",roles:"You've reached the maximum number of roles your plan allows to create",uploadable_bytes:"You've reached the file storage limits of your plan",users:"You've reached the maximum number of collaborators your plan allows to invite to the project",access_tokens:"You've reached the maximum number of API tokens your plan allows to create"},Qo=function(e){function t(t){var n=this.constructor,r=e.call(this,"API Error!")||this;return Object.setPrototypeOf(r,n.prototype),"captureStackTrace"in Error?Error.captureStackTrace(r,Ko):r.stack=(new Error).stack,r.request=t.request,r.preCallStack=t.preCallStack,r.message="".concat(t.request.method," ").concat(t.request.url,": Timeout error"),r.preCallStack&&(r.stack+="\nCaused By:\n".concat(r.preCallStack)),r}return Go(t,e),t}(Error),Ko=function(e){function t(n){var r=this.constructor,o=e.call(this,"API Error!")||this;Object.setPrototypeOf(o,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(o,t):o.stack=(new Error).stack,o.request=n.request,o.response=n.response,o.preCallStack=n.preCallStack;var i="".concat(n.request.method," ").concat(n.request.url,": ").concat(o.response.status," ").concat(o.response.statusText);return o.errors.length>0&&(i+="\n\n".concat(JSON.stringify(o.errors,null,2))),o.message=i,o.preCallStack&&(o.stack+="\nCaused By:\n".concat(o.preCallStack)),o}return Go(t,e),Object.defineProperty(t.prototype,"errors",{get:function(){return function(e){if("object"!=typeof e||null===e||!("data"in e))return!1;var t=e;if(!Array.isArray(t.data))return!1;var n=t;if(0===n.data.length)return!1;var r=n.data[0];return"object"==typeof r&&null!==r&&"id"in r&&"type"in r&&"attributes"in r&&"api_error"===r.type}(this.response.body)?this.response.body.data:[]},enumerable:!1,configurable:!0}),t.prototype.findError=function(e,t){var n=Array.isArray(e)?e:[e];return this.errors.find((function(e){return n.includes(e.attributes.code)&&(!t||("function"==typeof t?t(e.attributes.details):Object.entries(t).every((function(t){var n=t[0],r=t[1];return e.attributes.details[n]===r}))))}))},Object.defineProperty(t.prototype,"humanMessage",{get:function(){var e=this,t=this.findError("PLAN_UPGRADE_REQUIRED");if(t){var n=t.attributes.details.limit;return"".concat(Wo[n],". Please head over to your account dashboard (https://dashboard.datocms.com/) to upgrade the plan or, if no publicly available plan suits your needs, contact our Sales team (https://www.datocms.com/contact) to get a custom quote!")}var r=Object.keys(Yo).filter((function(t){return e.findError(t)})).map((function(e){return Yo[e]}));return 0===r.length?null:r.join("\n")},enumerable:!1,configurable:!0}),t}(Error),Xo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jo=function(e){function t(){var t=this.constructor,n=e.call(this,"Promise canceled!")||this;return Object.setPrototypeOf(n,t.prototype),n}return Xo(t,e),t}(Error);function Zo(e,t){var n=null,r=new Promise((function(r,o){n=function(){try{t&&t(),o(new Jo)}catch(e){o(e)}},("function"==typeof e?e():e).then(r,o)}));return n&&(r.cancel=n),r}function ei(e){return new Promise((function(t){setTimeout(t,e)}))}var ti,ni=function(){return ni=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ni.apply(this,arguments)},ri="undefined"!=typeof window&&void 0!==window.document;function oi(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o.status,statusText:o.statusText,headers:(u=o.headers,s={},u.forEach((function(e,t){s[t]=e})),s),body:i},preCallStack:a};var u,s}!function(e){e[e.NONE=0]="NONE",e[e.BASIC=1]="BASIC",e[e.BODY=2]="BODY",e[e.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"}(ti||(ti={}));var ii=1;function ai(e){return t=this,n=void 0,o=function(){var t,n,r,o,i,a,u,s,l,c,f,p,d,h,m,y,v,g,b,w,_,E,S,x,O,k,P,T,C,I,N;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(j){switch(j.label){case 0:if(t=ii,ii+=1,void 0===(n=e.fetchFn||("undefined"==typeof fetch?void 0:fetch)||("undefined"==typeof globalThis?void 0:globalThis.fetch)))throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");if(r=e.preCallStack,o=e.userAgent||"@datocms/rest-client-utils",i=e.retryCount||1,a=e.logLevel||ti.NONE,u=!("autoRetry"in e)||e.autoRetry,s=e.logFn||function(){return!0},l=ni({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":o},e.extraHeaders?(L=e.extraHeaders,Object.fromEntries(Object.entries(L).map((function(e){var t=e[0],n=e[1];return[t.toLowerCase(),n]})))):{}),ri&&delete l["user-agent"],c=e.baseUrl.replace(/\/$/,""),f=e.body?JSON.stringify(e.body,null,2):void 0,p=e.queryParams&&Object.keys(e.queryParams).length>0?"?".concat(new URLSearchParams(Bo(e.queryParams)).toString()):"",d="".concat(c).concat(e.url).concat(p),a>=ti.BASIC){if(s("[".concat(t,"] ").concat(e.method," ").concat(d)),a>=ti.BODY_AND_HEADERS)for(h=0,m=Object.entries(l||{});h<m.length;h++)y=m[h],O=y[0],k=y[1],s("[".concat(t,"] ").concat(O,": ").concat(k));a>=ti.BODY&&f&&s("[".concat(t,"] ").concat(f))}j.label=1;case 1:return j.trys.push([1,12,,16]),v=Zo(n(d,{method:e.method,headers:l,body:f})),g=setTimeout((function(){v.cancel()}),e.requestTimeout||3e4),[4,v];case 2:if(b=j.sent(),clearTimeout(g),w=b.headers.get("Content-Type"),_=w&&!w.includes("application/json"),429!==b.status&&!_)return[3,4];if(!u||_&&"GET"!==e.method)throw new Ko(oi(e.method,d,l,e.body,b,void 0,r));return E=b.headers.has("X-RateLimit-Reset")?Number.parseInt(b.headers.get("X-RateLimit-Reset"),10):i,a>=ti.BASIC&&(429===b.status?s("[".concat(t,"] Rate limit exceeded, wait ").concat(E," seconds then retry...")):s("[".concat(t,'] Invalid response content type "').concat(w,'" (status ').concat(b.status,"). Wait ").concat(E," seconds then retry..."))),[4,ei(1e3*E)];case 3:return j.sent(),[2,ai(ni(ni({},e),{retryCount:i+1}))];case 4:if(a>=ti.BASIC&&(s("[".concat(t,"] Status: ").concat(b.status," (").concat(b.statusText,")")),a>=ti.BODY_AND_HEADERS))for(S=0,x=["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"];S<x.length;S++)O=x[S],(k=b.headers.get(O))&&s("[".concat(t,"] ").concat(O,": ").concat(k));return 204!==b.status?[3,5]:(T=void 0,[3,7]);case 5:return[4,b.json()];case 6:T=j.sent(),j.label=7;case 7:return P=T,a>=ti.BODY&&P&&s("[".concat(t,"] ").concat(JSON.stringify(P,null,2))),202!==b.status?[3,9]:[4,e.fetchJobResult(P.data.id)];case 8:if((C=j.sent()).status<200||C.status>=300)throw new Ko(function(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o,statusText:"N/A",headers:{},body:i},preCallStack:a}}(e.method,d,l,e.body,C.status,C.payload,r));P=C.payload,j.label=9;case 9:return b.status>=200&&b.status<300?[2,P]:(I=new Ko(oi(e.method,d,l,e.body,b,P,r)),u&&I.findError("BATCH_DATA_VALIDATION_IN_PROGRESS")?(a>=ti.BASIC&&s("[".concat(t,"] Data validation in progress, wait ").concat(i," seconds then retry...")),[4,ei(1e3*i)]):[3,11]);case 10:return j.sent(),[2,ai(ni(ni({},e),{retryCount:i+1}))];case 11:throw I;case 12:return(N=j.sent())instanceof Jo||function(e){return"object"==typeof e&&!!e&&"code"in e}(N)&&N.code.includes("ETIMEDOUT")?u&&i<5?(a>=ti.BASIC&&s("[".concat(t,"] Timeout error, wait ").concat(i," seconds then retry...")),[4,ei(1e3*i)]):[3,14]:[3,15];case 13:return j.sent(),[2,ai(ni(ni({},e),{retryCount:i+1}))];case 14:throw new Qo(function(e,t,n,r,o){return{request:{url:t,method:e,headers:n,body:r},preCallStack:o}}(e.method,d,l,e.body,r));case 15:throw N;case 16:return[2]}var L}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function u(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}var ui=function(){return ui=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ui.apply(this,arguments)};function si(e){return"object"==typeof e&&!!e&&"id"in e&&"type"in e}function li(e){return Array.isArray(e)&&e.every(si)}function ci(e,t){if("object"!=typeof e||!e)throw new Error("Invalid body!");var n=e,r=n.id,o=n.type,i=n.meta,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["id","type","meta"]),u={},s={};if("*"===t.attributes)for(var l=0,c=Object.entries(a);l<c.length;l++){var f=c[l],p=f[0],d=f[1];if(t.relationships.includes(p))if(si(d)){var h=d.id,m=d.type;s[p]={data:{id:h,type:m}}}else li(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null};else u[p]=d}else if("*"===t.relationships)for(var y=0,v=Object.entries(a);y<v.length;y++){var g=v[y];if(p=g[0],d=g[1],t.attributes.includes(p))u[p]=d;else if(si(d)){var b=d.id,w=d.type;s[p]={data:{id:b,type:w}}}else li(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null}}else for(var _=0,E=Object.entries(a);_<E.length;_++){var S=E[_];if(p=S[0],d=S[1],t.attributes.includes(p))u[p]=d;else if(t.relationships.includes(p))if(si(d)){var x=d.id,O=d.type;s[p]={data:{id:x,type:O}}}else li(d)?s[p]={data:d.map((function(e){return{id:e.id,type:e.type}}))}:s[p]={data:null}}return{data:ui(ui(ui(ui(ui({},r||t.id?{id:r||t.id}:{}),{type:o||t.type}),Object.keys(u).length>0?{attributes:u}:{}),Object.keys(s).length>0?{relationships:s}:{}),i?{meta:i}:{})}}var fi=function(){return fi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fi.apply(this,arguments)};function pi(e){var t=e.id,n=e.type,r=e.attributes,o=e.relationships,i=e.meta;return fi(fi(fi(fi(fi({},t?{id:t}:{}),n?{type:n}:{}),r||{}),o?Object.fromEntries(Object.entries(o).map((function(e){var t=e[0],n=e[1];return[t,null==n?void 0:n.data]}))):{}),i?{meta:i}:{})}function di(e){if("object"!=typeof(t=e)||!t||!("data"in t))throw new Error("Invalid body!");var t;return Array.isArray(e.data)?e.data.map(pi):pi(e.data)}function hi(e){return"string"==typeof e?e:e.id}const mi=function(e){this.client=e};var yi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yi(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/roles",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/roles/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/roles"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/roles/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/roles/".concat(e)})},t.TYPE="role",t}(mi);var gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bi=function(){return bi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bi.apply(this,arguments)},wi=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function _i(e,t){return null==e&&null==t||e===t}function Ei(e,t,n,r){if(!t)return e;var o=t.add,i=t.remove;return wi(wi([],i?i.reduce((function(e,t){var o=bi(bi({},t),{environment:n}),i=e.find((function(e){return function(e,t){for(var n in e)if(!_i(e[n],t[n]))return!1;for(var n in t)if(!_i(e[n],t[n]))return!1;return!0}(e,o)}));if(!i)throw new Error("Cannot find rule ".concat(JSON.stringify(o)," to remove in ").concat(r,"!"));return e.filter((function(e){return e!==i}))}),e):e,!0),o?o.map((function(e){return bi({environment:n},e)})):[],!0)}var Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gi(t,e),t.prototype.updateCurrentEnvironmentPermissions=function(e,t){return n=this,r=void 0,i=function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(s){switch(s.label){case 0:return(r=this.client.config.environment)?[3,2]:[4,this.client.environments.list()];case 1:r=s.sent().find((function(e){return e.meta.primary})).id,s.label=2;case 2:return n=r,[4,this.find(e)];case 3:return o=s.sent(),i=Boolean(t.positive_item_type_permissions||t.negative_item_type_permissions),a=Boolean(t.positive_upload_permissions||t.negative_upload_permissions),u=bi(bi({},i?{positive_item_type_permissions:Ei(o.positive_item_type_permissions,t.positive_item_type_permissions,n,"positive_item_type_permissions"),negative_item_type_permissions:Ei(o.negative_item_type_permissions,t.negative_item_type_permissions,n,"negative_item_type_permissions")}:{}),a?{positive_upload_permissions:Ei(o.positive_upload_permissions,t.positive_upload_permissions,n,"positive_upload_permissions"),negative_upload_permissions:Ei(o.negative_upload_permissions,t.negative_upload_permissions,n,"negative_upload_permissions")}:{}),[2,this.update(e,u)]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i},t}(vi);const xi=Si;var Oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oi(t,e),t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"user",attributes:["is_active"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/users/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/users"})},t.prototype.find=function(e,t){return this.rawFind(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/users/".concat(e),queryParams:t})},t.prototype.findMe=function(e){return this.rawFindMe(e).then((function(e){return di(e)}))},t.prototype.rawFindMe=function(e){return this.client.request({method:"GET",url:"/users/me",queryParams:e})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/users/".concat(e),queryParams:t})},t.TYPE="user",t}(mi);var Pi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-users"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/sso-users/".concat(e)})},t.prototype.copyUsers=function(){return this.rawCopyUsers().then((function(e){return di(e)}))},t.prototype.rawCopyUsers=function(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/sso-users/".concat(e),queryParams:t})},t.TYPE="sso_user",t}(mi);var Ci=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ci(t,e),t.prototype.query=function(e){return this.rawQuery(ci(e,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawQuery=function(e){return this.client.request({method:"POST",url:"/audit-log-events/query",body:e})},t.TYPE="audit_log_event",t}(mi);var Ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ni(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/menu-items/".concat(e)})},t.TYPE="menu_item",t}(mi);var Li=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/schema-menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/schema-menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/schema-menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/schema-menu-items/".concat(e)})},t.TYPE="schema_menu_item",t}(mi);var Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Fi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ri(t,e),t.prototype.create=function(e,t){return this.rawCreate(ci(e,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]}),t).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types",body:e,queryParams:t})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-types/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-types"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/duplicate")})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/item-types/".concat(e),queryParams:t})},t.TYPE="item_type",t}(mi);var Ai=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ai(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fields"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fields/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(hi(e)).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields")})},t.prototype.referencing=function(e){return this.rawReferencing(hi(e)).then((function(e){return di(e)}))},t.prototype.rawReferencing=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/referencing")})},t.prototype.related=function(e){return this.rawRelated(hi(e)).then((function(e){return di(e)}))},t.prototype.rawRelated=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/related")})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fields/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fields/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/fields/".concat(e,"/duplicate")})},t.TYPE="field",t}(mi);var Vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vi(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fieldsets"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fieldsets/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(hi(e)).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fieldsets")})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fieldsets/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fieldsets/".concat(e)})},t.TYPE="fieldset",t}(mi);var Ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const qi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ui(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/sessions",body:e})},t.TYPE="session",t}(mi);var Hi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hi(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/access_tokens",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/access_tokens/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/access_tokens"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/access_tokens/".concat(e)})},t.prototype.regenerateToken=function(e){return this.rawRegenerateToken(hi(e)).then((function(e){return di(e)}))},t.prototype.rawRegenerateToken=function(e){return this.client.request({method:"POST",url:"/access_tokens/".concat(e,"/regenerate_token")})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/access_tokens/".concat(e),queryParams:t})},t.TYPE="access_token",t}(mi);var $i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $i(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/plugins",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/plugins/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/plugins"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/plugins/".concat(e)})},t.prototype.fields=function(e){return this.rawFields(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFields=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e,"/fields")})},t.TYPE="plugin",t}(mi);var Yi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yi(t,e),t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/job-results/".concat(e)})},t.TYPE="job_result",t}(mi);var Qi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-limits"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/subscription-limits/".concat(e)})},t.TYPE="subscription_limit",t}(mi);var Xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},t.TYPE="subscription_feature",t}(mi);var Zi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-events"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-events/".concat(e)})},t.TYPE="build_event",t}(mi);var ta=o(3271),na=function(e){return this instanceof na?(this.v=e,this):new na(e)};function ra(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof na?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,s,l,c,f,p,d,h,m,y;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(v){switch(v.label){case 0:if((r=(null==n?void 0:n.perPage)||e.defaultLimit)>e.maxLimit)throw new Error("perPage option cannot exceed maximum value of ".concat(e.maxLimit));if((o=(null==n?void 0:n.concurrency)||1)>10)throw new Error("concurrency option cannot exceed maximum value of 10");return[4,na(t({limit:r,offset:0}))];case 1:i=v.sent(),a=0,u=i.data,v.label=2;case 2:return a<u.length?(y=u[a],[4,na(y)]):[3,6];case 3:return[4,v.sent()];case 4:v.sent(),v.label=5;case 5:return a++,[3,2];case 6:for(s=i.meta.total_count,l=new ta.Scheduler(o),c=[],f=function(e){c.push(l.enqueue((function(){return t({limit:r,offset:e})})))},p=r;p<s;p+=r)f(p);v.label=7;case 7:return c.length>0?[4,na(c.shift())]:[3,14];case 8:d=v.sent(),h=0,m=d.data,v.label=9;case 9:return h<m.length?(y=m[h],[4,na(y)]):[3,13];case 10:return[4,v.sent()];case 11:v.sent(),v.label=12;case 12:return h++,[3,9];case 13:return[3,7];case 14:return[2]}}))}))}function oa(e){e&&"page"in e&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}var ia=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aa=function(){return aa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aa.apply(this,arguments)},ua=function(e){return this instanceof ua?(this.v=e,this):new ua(e)},sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ia(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/items",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof ua?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,ua(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,ua(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,ua(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(aa(aa({},e),{page:t}))}),t)},t.prototype.validateExisting=function(e,t){return this.rawValidateExisting(hi(e),ci(t,{id:hi(e),type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateExisting=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/validate"),body:t})},t.prototype.validateNew=function(e){return this.rawValidateNew(ci(e,{type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateNew=function(e){return this.client.request({method:"POST",url:"/items/validate",body:e})},t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/items",body:e})},t.prototype.duplicate=function(e){return this.rawDuplicate(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/items/".concat(e,"/duplicate")})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/items/".concat(e),body:t})},t.prototype.references=function(e,t){return this.rawReferences(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/references"),queryParams:t})},t.prototype.find=function(e,t){return this.rawFind(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e),queryParams:t})},t.prototype.currentVsPublishedState=function(e){return this.rawCurrentVsPublishedState(hi(e)).then((function(e){return di(e)}))},t.prototype.rawCurrentVsPublishedState=function(e){return this.client.request({method:"GET",url:"/items/".concat(e,"/current-vs-published-state")})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e)})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return di(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/items",queryParams:e})},t.prototype.batchPublish=function(e){return this.rawBatchPublish(e).then((function(e){return di(e)}))},t.prototype.rawBatchPublish=function(e){return this.client.request({method:"PUT",url:"/items/publish",queryParams:e})},t.prototype.batchUnpublish=function(e){return this.rawBatchUnpublish(e).then((function(e){return di(e)}))},t.prototype.rawBatchUnpublish=function(e){return this.client.request({method:"PUT",url:"/items/unpublish",queryParams:e})},t.prototype.publish=function(e,t,n){return this.rawPublish(hi(e),t?ci(t,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,n).then((function(e){return di(e)}))},t.prototype.rawPublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/publish"),body:t,queryParams:n})},t.prototype.unpublish=function(e,t,n){return this.rawUnpublish(hi(e),t?ci(t,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,n).then((function(e){return di(e)}))},t.prototype.rawUnpublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/unpublish"),body:t,queryParams:n})},t.prototype.bulkPublish=function(e){return this.rawBulkPublish(ci(e,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then((function(e){return di(e)}))},t.prototype.rawBulkPublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/publish",body:e})},t.prototype.bulkUnpublish=function(e){return this.rawBulkUnpublish(ci(e,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then((function(e){return di(e)}))},t.prototype.rawBulkUnpublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(ci(e,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then((function(e){return di(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:e})},t.prototype.bulkMoveToStage=function(e){return this.rawBulkMoveToStage(ci(e,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then((function(e){return di(e)}))},t.prototype.rawBulkMoveToStage=function(e){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:e})},t.TYPE="item",t}(mi);const la=sa;var ca=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fa=function(){return fa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fa.apply(this,arguments)},pa=function(e){return this instanceof pa?(this.v=e,this):new pa(e)},da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ca(t,e),t.prototype.restore=function(e){return this.rawRestore(hi(e)).then((function(e){return di(e)}))},t.prototype.rawRestore=function(e){return this.client.request({method:"POST",url:"/versions/".concat(e,"/restore")})},t.prototype.list=function(e,t){return this.rawList(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawList=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/versions"),queryParams:t})},t.prototype.listPagedIterator=function(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof pa?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,s,l,c;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(f){switch(f.label){case 0:f.trys.push([0,9,10,15]),r=!0,o=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(hi(e),t,n)),f.label=1;case 1:return[4,pa(o.next())];case 2:if(i=f.sent(),u=i.done)return[3,8];c=i.value,r=!1,f.label=3;case 3:return f.trys.push([3,,6,7]),[4,pa(pi(c))];case 4:return[4,f.sent()];case 5:return f.sent(),[3,7];case 6:return r=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return a=f.sent(),s={error:a},[3,15];case 10:return f.trys.push([10,,13,14]),r||u||!(l=o.return)?[3,12]:[4,pa(l.call(o))];case 11:f.sent(),f.label=12;case 12:return[3,14];case 13:if(s)throw s.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t,n){var r=this;return oa(t),ra({defaultLimit:15,maxLimit:50},(function(n){return r.rawList(e,fa(fa({},t),{page:n}))}),n)},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/versions/".concat(e)})},t.TYPE="item_version",t}(mi);const ha=da;var ma=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ya=function(){return ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ya.apply(this,arguments)},va=function(e){return this instanceof va?(this.v=e,this):new va(e)},ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ma(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/uploads",body:e})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof va?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,va(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,va(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,va(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(ya(ya({},e),{page:t}))}),t)},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/".concat(e)})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/uploads/".concat(e),body:t})},t.prototype.batchAddTags=function(e,t){return this.rawBatchAddTags(ci(e,{type:"upload",attributes:["tags"],relationships:[]}),t).then((function(e){return di(e)}))},t.prototype.rawBatchAddTags=function(e,t){return this.client.request({method:"PUT",url:"/uploads/batch-add-tags",body:e,queryParams:t})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return di(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/batch-destroy",queryParams:e})},t.prototype.references=function(e,t){return this.rawReferences(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/references"),queryParams:t})},t.prototype.bulkTag=function(e){return this.rawBulkTag(ci(e,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then((function(e){return di(e)}))},t.prototype.rawBulkTag=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(ci(e,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then((function(e){return di(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:e})},t.TYPE="upload",t}(mi);const ba=ga;var wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const _a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wa(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"upload_request",attributes:["filename"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-requests",body:e})},t.TYPE="upload_request",t}(mi);var Ea=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ea(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/uploads/".concat(e,"/tracks"),body:t})},t.prototype.list=function(e){return this.rawList(hi(e)).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/tracks")})},t.prototype.destroy=function(e,t){return this.rawDestroy(hi(e),hi(t)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/uploads/".concat(e,"/tracks/").concat(t)})},t.prototype.generateSubtitles=function(e,t){return this.rawGenerateSubtitles(hi(e),ci(t,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawGenerateSubtitles=function(e,t){return this.client.request({method:"POST",url:"/uploads/".concat(e,"/tracks/generate-subtitles"),body:t})},t.TYPE="upload_track",t}(mi);var xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xa(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-publication"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-publication")})},t.TYPE="scheduled_publication",t}(mi);var ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ka(t,e),t.prototype.create=function(e,t){return this.rawCreate(hi(e),ci(t,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-unpublishing"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-unpublishing")})},t.TYPE="scheduled_unpublishing",t}(mi);var Ta=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ca=function(){return Ca=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ca.apply(this,arguments)},Ia=function(e){return this instanceof Ia?(this.v=e,this):new Ia(e)},Na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/search-results",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Ia?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,Ia(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,Ia(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,Ia(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:20,maxLimit:100},(function(t){return n.rawList(Ca(Ca({},e),{page:t}))}),t)},t.TYPE="search_result",t}(mi);const ja=Na;var La=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return La(t,e),t.prototype.fork=function(e,t,n){return this.rawFork(hi(e),ci(t,{id:hi(e),type:"environment",attributes:[],relationships:[]}),n).then((function(e){return di(e)}))},t.prototype.rawFork=function(e,t,n){return this.client.request({method:"POST",url:"/environments/".concat(e,"/fork"),body:t,queryParams:n})},t.prototype.promote=function(e){return this.rawPromote(hi(e)).then((function(e){return di(e)}))},t.prototype.rawPromote=function(e){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/promote")})},t.prototype.rename=function(e,t){return this.rawRename(hi(e),ci(t,{id:hi(e),type:"environment",attributes:[],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawRename=function(e,t){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/rename"),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/environments"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/environments/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/environments/".concat(e)})},t.TYPE="environment",t}(mi);var Ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return di(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/maintenance-mode"})},t.prototype.activate=function(e){return this.rawActivate(e).then((function(e){return di(e)}))},t.prototype.rawActivate=function(e){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:e})},t.prototype.deactivate=function(){return this.rawDeactivate().then((function(e){return di(e)}))},t.prototype.rawDeactivate=function(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})},t.TYPE="maintenance_mode",t}(mi);var Aa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/webhooks",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/webhooks/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/webhooks"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/webhooks/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/webhooks/".concat(e)})},t.TYPE="webhook",t}(mi);var Va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),za=function(){return za=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},za.apply(this,arguments)},Ua=function(e){return this instanceof Ua?(this.v=e,this):new Ua(e)},qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Va(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Ua?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,Ua(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,Ua(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,Ua(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(za(za({},e),{page:t}))}),t)},t.prototype.resendWebhook=function(e){return this.rawResendWebhook(hi(e))},t.prototype.rawResendWebhook=function(e){return this.client.request({method:"POST",url:"/webhook_calls/".concat(e,"/resend_webhook")})},t.TYPE="webhook_call",t}(mi);const Ha=qa;var Ba=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const $a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ba(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-triggers"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-triggers/".concat(e)})},t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/build-triggers",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"build_trigger",attributes:["name","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e),body:t})},t.prototype.trigger=function(e){return this.rawTrigger(hi(e))},t.prototype.rawTrigger=function(e){return this.client.request({method:"POST",url:"/build-triggers/".concat(e,"/trigger")})},t.prototype.abort=function(e){return this.rawAbort(hi(e))},t.prototype.rawAbort=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort")})},t.prototype.abortIndexing=function(e){return this.rawAbortIndexing(hi(e))},t.prototype.rawAbortIndexing=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort_indexing")})},t.prototype.reindex=function(e){return this.rawReindex(hi(e))},t.prototype.rawReindex=function(e){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e,"/reindex")})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e)})},t.TYPE="build_trigger",t}(mi);var Ga=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ga(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/item-type-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-type-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-type-filters"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-type-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/item-type-filters/".concat(e)})},t.TYPE="item_type_filter",t}(mi);var Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wa(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/upload-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/upload-filters"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/upload-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/upload-filters/".concat(e)})},t.TYPE="upload_filter",t}(mi);var Ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ka(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/site-invitations",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"site_invitation",attributes:[],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/site-invitations/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/site-invitations"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site-invitations/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/site-invitations/".concat(e)})},t.prototype.resend=function(e){return this.rawResend(hi(e)).then((function(e){return di(e)}))},t.prototype.rawResend=function(e){return this.client.request({method:"POST",url:"/site-invitations/".concat(e,"/resend")})},t.TYPE="site_invitation",t}(mi);var Ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ja(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/editing-sessions"})},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/editing-sessions/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/editing-sessions/".concat(e)})},t.TYPE="editing_session",t}(mi);var eu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const tu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eu(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-groups"})},t.prototype.copyRoles=function(e){return this.rawCopyRoles(hi(e)).then((function(e){return di(e)}))},t.prototype.rawCopyRoles=function(e){return this.client.request({method:"POST",url:"/sso-groups/".concat(e,"/copy-roles")})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"sso_group",attributes:["priority"],relationships:["role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/sso-groups/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e)).then((function(e){return di(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/sso-groups/".concat(e)})},t.TYPE="sso_group",t}(mi);var nu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nu(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return di(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/sso-settings"})},t.prototype.generateToken=function(){return this.rawGenerateToken().then((function(e){return di(e)}))},t.prototype.rawGenerateToken=function(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})},t.prototype.update=function(e){return this.rawUpdate(ci(e,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/sso-settings",body:e})},t.TYPE="sso_settings",t}(mi);var ou=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ou(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:e})},t.TYPE="emoji_suggestions",t}(mi);var au=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const uu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return au(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return di(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/white-label-settings"})},t.prototype.update=function(e){return this.rawUpdate(ci(e,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/white-label-settings",body:e})},t.TYPE="white_label_settings",t}(mi);var su=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const lu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return su(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return di(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/public-info"})},t.TYPE="public_info",t}(mi);var cu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cu(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/daily-site-usages"})},t.TYPE="daily_usage",t}(mi);var pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pu(t,e),t.prototype.find=function(e,t){return this.rawFind(hi(e),t).then((function(e){return di(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/usage-log-counters/".concat(e),queryParams:t})},t.TYPE="usage_counter",t}(mi);var hu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mu=function(){return mu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mu.apply(this,arguments)},yu=function(e){return this instanceof yu?(this.v=e,this):new yu(e)},vu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof yu?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,yu(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,yu(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,yu(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(mu(mu({},e),{page:t}))}),t)},t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"upload_tag",attributes:["name"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-tags",body:e})},t.TYPE="upload_tag",t}(mi);const gu=vu;var bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wu=function(){return wu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wu.apply(this,arguments)},_u=function(e){return this instanceof _u?(this.v=e,this):new _u(e)},Eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return di(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof _u?Promise.resolve(n.value.v).then(s,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:c.trys.push([0,9,10,15]),n=!0,r=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),c.label=1;case 1:return[4,_u(r.next())];case 2:if(o=c.sent(),a=o.done)return[3,8];l=o.value,n=!1,c.label=3;case 3:return c.trys.push([3,,6,7]),[4,_u(pi(l))];case 4:return[4,c.sent()];case 5:return c.sent(),[3,7];case 6:return n=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return i=c.sent(),u={error:i},[3,15];case 10:return c.trys.push([10,,13,14]),n||a||!(s=r.return)?[3,12]:[4,_u(s.call(r))];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(u)throw u.error;return[7];case 14:return[7];case 15:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return oa(e),ra({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(wu(wu({},e),{page:t}))}),t)},t.TYPE="upload_smart_tag",t}(mi);const Su=Eu;var xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xu(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site",queryParams:e})},t.prototype.update=function(e){return this.rawUpdate(ci(e,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled","force_use_of_sandbox_environments"],relationships:["sso_default_role"]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/site",body:e})},t.prototype.activateImprovedTimezoneManagement=function(){return this.rawActivateImprovedTimezoneManagement().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedTimezoneManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})},t.prototype.activateImprovedHexManagement=function(){return this.rawActivateImprovedHexManagement().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedHexManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})},t.prototype.activateImprovedGqlMultilocaleFields=function(){return this.rawActivateImprovedGqlMultilocaleFields().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedGqlMultilocaleFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})},t.prototype.activateImprovedGqlVisibilityControl=function(){return this.rawActivateImprovedGqlVisibilityControl().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedGqlVisibilityControl=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})},t.prototype.activateImprovedBooleanFields=function(){return this.rawActivateImprovedBooleanFields().then((function(e){return di(e)}))},t.prototype.rawActivateImprovedBooleanFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})},t.prototype.updateAssetsCdnDefaultSettings=function(e){return this.rawUpdateAssetsCdnDefaultSettings(ci(e,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdateAssetsCdnDefaultSettings=function(e){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:e})},t.TYPE="site",t}(mi);var ku=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Pu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ku(t,e),t.prototype.create=function(e){return this.rawCreate(ci(e,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/workflows",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(hi(e),ci(t,{id:hi(e),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return di(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/workflows/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return di(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/workflows"})},t.prototype.find=function(e){return this.rawFind(hi(e)).then((function(e){return di(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/workflows/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(hi(e))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/workflows/".concat(e)})},t.TYPE="workflow",t}(mi);var Tu=function(){return Tu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tu.apply(this,arguments)},Cu=function(){function e(e){this.config=e,this.roles=new xi(this),this.users=new ki(this),this.ssoUsers=new Ti(this),this.auditLogEvents=new Ii(this),this.menuItems=new ji(this),this.schemaMenuItems=new Di(this),this.itemTypes=new Fi(this),this.fields=new Mi(this),this.fieldsets=new zi(this),this.session=new qi(this),this.accessTokens=new Bi(this),this.plugins=new Gi(this),this.jobResults=new Wi(this),this.subscriptionLimits=new Ki(this),this.subscriptionFeatures=new Ji(this),this.buildEvents=new ea(this),this.items=new la(this),this.itemVersions=new ha(this),this.uploads=new ba(this),this.uploadRequest=new _a(this),this.uploadTracks=new Sa(this),this.scheduledPublication=new Oa(this),this.scheduledUnpublishing=new Pa(this),this.searchResults=new ja(this),this.environments=new Da(this),this.maintenanceMode=new Fa(this),this.webhooks=new Ma(this),this.webhookCalls=new Ha(this),this.buildTriggers=new $a(this),this.itemTypeFilters=new Ya(this),this.uploadFilters=new Qa(this),this.siteInvitations=new Xa(this),this.editingSessions=new Za(this),this.ssoGroups=new tu(this),this.ssoSettings=new ru(this),this.emojiSuggestions=new iu(this),this.whiteLabelSettings=new uu(this),this.publicInfo=new lu(this),this.dailyUsages=new fu(this),this.usageCounters=new du(this),this.uploadTags=new gu(this),this.uploadSmartTags=new Su(this),this.site=new Ou(this),this.workflows=new Pu(this)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.config.baseUrl||e.defaultBaseUrl},enumerable:!1,configurable:!0}),e.prototype.request=function(e){var t=this;return ai(Tu(Tu(Tu({},this.config),e),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v3.3.5",baseUrl:this.baseUrl,preCallStack:(new Error).stack,extraHeaders:Tu(Tu(Tu({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(e){return t.jobResultsFetcher?t.jobResultsFetcher(e):function(){return n=this,r=void 0,i=function(){var n,r,o;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(i){switch(i.label){case 0:r=0,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,ei(1e3*(r+=1))];case 2:return i.sent(),[4,t.jobResults.find(e)];case 3:return n=i.sent(),[3,5];case 4:if(!((o=i.sent())instanceof Ko)||404!==o.response.status)throw o;return[3,5];case 5:if(!n)return[3,1];i.label=6;case 6:return[2,n]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i}()}}))},e.prototype.eventsChannelName=function(){return e=this,t=void 0,r=function(){var e;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(t){switch(t.label){case 0:return this.cachedEventsChannelName?[2,this.cachedEventsChannelName]:[4,this.site.rawFind()];case 1:return e=t.sent().data,this.cachedEventsChannelName=this.config.environment?"private-site-".concat(e.id,"-environment-").concat(this.config.environment):"private-site-".concat(e.id),[2,this.cachedEventsChannelName]}}))},new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}));var e,t,n,r},e.defaultBaseUrl="https://site-api.datocms.com",e}(),Iu=function(){return Iu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Iu.apply(this,arguments)};function Nu(e,t,n){var r=this;void 0===n&&(n={});var o=n.filename||("name"in t?t.name:void 0);if(!o)throw new Error("Missing filename, please provide it as an option!");var i=!1,a=void 0;return Zo((function(){return u=r,s=void 0,c=function(){var r,u,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(c){switch(c.label){case 0:return n.onProgress&&(null==n||n.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:o}})),[4,e.uploadRequest.create({filename:o})];case 1:if(r=c.sent(),u=r.id,s=r.url,l=r.request_headers,i)throw new Jo;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=function(e,t,n){var r=void 0===n?{}:n,o=r.onProgress,i=r.additionalHeaders,a=new XMLHttpRequest;return Zo(new Promise((function(n,r){if(o&&a.upload&&(a.upload.onprogress=function(e){e.lengthComputable&&o({type:"UPLOADING_FILE",payload:{progress:Math.round(e.loaded/e.total*100)}})}),a.onreadystatechange=function(){4===a.readyState&&(200===a.status?n():r(new Error("Status ".concat(a.status))))},a.addEventListener("error",r,!1),a.open("PUT",t,!0),i)for(var u=0,s=Object.entries(i);u<s.length;u++){var l=s[u],c=l[0],f=l[1];a.setRequestHeader(c,f)}a.send(e)})),(function(){a.onreadystatechange=null,a.abort()}))}(t,s,Iu(Iu({},n),{additionalHeaders:l})),[4,a];case 2:return c.sent(),[2,u]}}))},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}o((c=c.apply(u,s||[])).next())}));var u,s,l,c}),(function(){a?a.cancel():i=!0}))}var ju=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lu=function(){return Lu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lu.apply(this,arguments)},Du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ju(t,e),t.prototype.createFromFileOrBlob=function(e){var t,n=this,r=!1;return Zo((function(){return o=n,i=void 0,u=function(){var n,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(s){switch(s.label){case 0:if(r)throw new Jo;return n=e.fileOrBlob,o=e.filename,i=e.onProgress,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["fileOrBlob","filename","onProgress"]),[4,t=Nu(this.client,n,{filename:o,onProgress:i})];case 1:return u=s.sent(),i&&i({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(Lu(Lu({},a),{path:u}))]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(u.next(e))}catch(e){t(e)}}function r(e){try{s(u.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((u=u.apply(o,i||[])).next())}));var o,i,a,u}),(function(){t?t.cancel():r=!0}))},t}(ba);const Ru=Du;var Fu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Au=function(e){function t(t){var n=e.call(this,t)||this;return n.uploads=new Ru(n),n}return Fu(t,e),t}(Cu),Mu=o(6454);function Vu(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);if(0===(e=e.trim()).length)return!1;if(!0!==Mu.XMLValidator.validate(e))return!1;let t;const n=new Mu.XMLParser;try{t=n.parse(e)}catch{return!1}return!!t&&!!Object.keys(t).some((e=>"svg"===e.toLowerCase()))}function zu(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z"})})}function Uu(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0H177.1c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H80.1 32 24C10.7 80 0 90.7 0 104s10.7 24 24 24H35.6L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3H324.6c33.5 0 61.3-25.9 63.8-59.3L412.4 128H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8H367.9 354.2zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128H364.3z"})})}var qu="ImageViewer-module__border--CocHd",Hu="ImageViewer-module__caption--qKvmP",Bu="ImageViewer-module__clickable--YNkn4",$u="ImageViewer-module__dropdown--V_fG8",Gu="ImageViewer-module__dropdownButton--edHOU",Yu="ImageViewer-module__dropdownDeleteButton--M4_Y7",Wu="ImageViewer-module__dropdownMenu--ziYe3",Qu="ImageViewer-module__dropdownMenuButton--Fnta0",Ku="ImageViewer-module__dropdownMenuDeleteButton--Jj5DS",Xu="ImageViewer-module__filename--ZX4Qx",Ju="ImageViewer-module__image--PBt7a",Zu="ImageViewer-module__imageWithFilename--szUif",es="ImageViewer-module__medium--xtt2R",ts="ImageViewer-module__raw--xfmgD",ns="ImageViewer-module__root--PHPSR",rs="ImageViewer-module__selected--v7MzH",os="ImageViewer-module__small--C5ma5",is="ImageViewer-module__tag--PrjB5",as="ImageViewer-module__tagText--LOlAw";function us(t){var n,r,o,i,a=t.image,u=t.component,s=void 0===u?"div":u,l=t.selected,c=t.showTag,f=t.disabled,p=t.size,d=void 0===p?"l":p,h=t.onDelete,m=t.onShowUpload,y=t.onShowRaw,v=t.onClick,g=(0,b.useState)(!1),w=g[0],_=g[1],S=null,x=v?"button":s,O=(o=function(){return _(!1)},i=(0,b.useRef)(),(0,b.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&o()};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[i]),i);return"svg"===a.type&&(S=(0,e.jsx)("div",{className:ts,dangerouslySetInnerHTML:{__html:a.raw}})),"image"===a.type&&(S=(0,e.jsx)("img",{src:a.url,alt:a.filename})),(0,e.jsxs)(x,{className:E()(ns,(n={},n[qu]=v||h,n[Bu]=v,n[rs]=l,n[os]="s"===d,n[es]="m"===d,n)),onClick:v?function(){return v(a)}:void 0,disabled:f,children:[(h||m||y)&&(0,e.jsxs)("div",{ref:O,children:[(0,e.jsx)("div",{className:$u,children:y||m||!h?(0,e.jsxs)("button",{type:"button",className:Gu,onClick:function(){return _(!w)},children:[(0,e.jsx)(zu,{}),(0,e.jsx)("span",{className:"sr-only",children:w?"Close menu":"Open menu"})]}):(0,e.jsxs)("button",{type:"button",className:E()(Gu,Yu),onClick:function(){return h(a)},children:[(0,e.jsx)(Uu,{}),(0,e.jsx)("span",{className:"sr-only",children:"Delete icon"})]})}),w&&(0,e.jsxs)("div",{className:Wu,children:["svg"===a.type&&y&&(0,e.jsx)("button",{type:"button",className:Qu,onClick:function(){return y(a)},children:"Show raw details"}),"image"===a.type&&m&&(0,e.jsx)("button",{type:"button",className:Qu,onClick:function(){return m(a)},children:"Show image details"}),h&&(0,e.jsx)("button",{type:"button",className:Ku,onClick:function(){return h(a)},children:"Delete"})]})]}),c&&(0,e.jsx)("div",{className:is,children:(0,e.jsxs)("p",{className:E()(as,"body--small"),children:["svg"===a.type&&"Raw"," ","image"===a.type&&"Raw + Image"]})}),(0,e.jsx)("div",{className:E()(Ju,(r={},r[Zu]=a.filename,r)),children:S}),a.filename&&(0,e.jsx)("div",{className:Hu,children:(0,e.jsx)("span",{className:E()("body--medium",Xu),children:a.filename})})]})}var ss="ImageList-module__root--zkSEd",ls="ImageList-module__small--Zz7tX",cs="ImageList-module__spinner--GZyBO";function fs(t){var n,r=t.svgs,o=t.activeSvgs,i=t.onDelete,a=t.onShowUpload,u=t.onShowRaw,s=t.onClick,l=t.size,c=t.showTag,f=t.disabled,p=t.isLoading;return r&&0!==r.length?(0,e.jsxs)("ul",{className:E()(ss,(n={},n[ls]="s"===l,n)),children:[null==r?void 0:r.map((function(t){var n;return(0,e.jsx)(us,{component:"li",image:t,onDelete:i,onShowUpload:a,onShowRaw:u,onClick:s,selected:null===(n=null==o?void 0:o.map((function(e){return e.id})))||void 0===n?void 0:n.includes(t.id),size:l,showTag:c,disabled:f},t.id)})),p&&(0,e.jsx)("div",{className:cs,children:(0,e.jsx)(Io,{})})]}):null}var ps="SvgViewer-module__filenameInput--YggJw",ds="SvgViewer-module__root--JLl6V",hs="SvgViewer-module__svgInput--p8Mqd",ms="SvgViewer-module__text--FQb4f",ys="SvgViewer-module__textarea--P5eOo",vs="SvgViewer-module__viewer--ps6H1",gs="SvgViewer-module__viewerFilename--gMlUO",bs="SvgViewer-module__viewerSvg--RPqBE",ws="SvgViewer-module__viewerSvgElement--VfV8v",_s="SvgViewer-module__viewerText--L91TL";function Es(t){var n=t.value,r=t.onChangeSvg,o=t.filename,i=t.onChangeFilename,a=(0,b.useMemo)((function(){return n&&!Vu(n)}),[n]);return(0,e.jsxs)("form",{className:ds,children:[(0,e.jsxs)("div",{className:hs,children:[(0,e.jsx)("label",{className:"sr-only",htmlFor:"embeded-svg",children:"Embeded svg"}),(0,e.jsx)("textarea",{className:ys,name:"embeded-svg",id:"embeded-svg",value:n,onChange:function(e){return r(e.target.value)},placeholder:"<svg>Paste your svg here</svg>"})]}),(0,e.jsxs)("div",{className:vs,children:[(0,e.jsxs)("div",{className:bs,children:[Vu(n)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("div",{className:ws,dangerouslySetInnerHTML:{__html:n}})}),(a||!n)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:_s,children:[n&&a&&(0,e.jsx)(z,{children:"Use a valid svg string"}),!n&&(0,e.jsxs)("p",{className:ms,children:[(0,e.jsx)("span",{className:"h3",children:"Nothing to show"}),(0,e.jsx)("span",{className:"body--medium",children:"Input a valid svg"})]})]})})]}),(0,e.jsx)("div",{className:gs,children:Vu(n)&&i&&(0,e.jsx)("input",{className:ps,value:o,onChange:function(e){return i(e.target.value)},autoFocus:!0})})]})]})}function Ss(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"})})}var xs=function(){return xs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xs.apply(this,arguments)},Os=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},ks=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};function Ps(e,t){return Os(this,void 0,void 0,(function(){var n,r=this;return ks(this,(function(o){switch(o.label){case 0:return[4,e.loadFieldsUsingPlugin()];case 1:return n=o.sent(),[4,Promise.all(n.map((function(n){return Os(r,void 0,void 0,(function(){var r,o;return ks(this,(function(i){switch(i.label){case 0:return r=n.attributes.appearance.parameters,t&&r.selectedSvgs?(o=r.selectedSvgs.filter((function(e){return null==t?void 0:t.find((function(t){return t.id===e.id}))})),[4,e.updateFieldAppearance(n.id,[{operation:"updateEditor",newParameters:xs(xs({},r),{selectedSvgs:o})}])]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))})))];case 2:return o.sent(),[2]}}))}))}var Ts=function(){return Ts=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ts.apply(this,arguments)},Cs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Is=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},Ns=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function js(t){var n,r,o=t.ctx,i=o.plugin.attributes.parameters,a=(0,b.useState)(""),u=a[0],s=a[1],l=(0,b.useState)(fo),c=l[0],f=l[1],p=(0,b.useState)(!1),d=p[0],h=p[1],m=(0,b.useState)(!1),y=m[0],v=m[1],g=(0,b.useState)(!1),w=g[0],_=g[1],E=o.currentUserAccessToken,S=o.environment;function x(e){return Cs(this,void 0,void 0,(function(){return Is(this,(function(t){switch(t.label){case 0:return[4,o.updatePluginParameters(Ts(Ts({},i),{svgs:Ns([e],i.svgs||[],!0)}))];case 1:return t.sent(),o.notice("Svg uploaded successfully!"),[2]}}))}))}function O(e){return Cs(this,void 0,void 0,(function(){var t;return Is(this,(function(n){switch(n.label){case 0:if(!e||!Vu(e))return[2];t={id:Po(),filename:c,type:"svg",raw:e},n.label=1;case 1:return n.trys.push([1,,3,4]),h(!0),[4,x(t)];case 2:return n.sent(),[3,4];case 3:return h(!1),s(""),f(fo),[7];case 4:return[2]}}))}))}function k(e){return Cs(this,void 0,void 0,(function(){var t,n,o;return Is(this,(function(i){switch(i.label){case 0:if(!e||!Vu(e))return[2];t=new Blob([e],{type:"image/svg+xml"}),n=new File([t],c),i.label=1;case 1:return i.trys.push([1,,4,5]),h(!0),[4,r.uploads.createFromFileOrBlob({fileOrBlob:n,filename:"".concat(c,".svg")})];case 2:return o=i.sent(),[4,x({id:Po(),filename:c,type:"image",imageId:o.id,url:o.url,raw:e})];case 3:return i.sent(),[3,5];case 4:return h(!1),s(""),f(fo),[7];case 5:return[2]}}))}))}function P(e){return Cs(this,void 0,void 0,(function(){var t;return Is(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),v(!0),[4,r.uploads.destroy(e)];case 1:return n.sent(),[3,4];case 2:return t=n.sent(),console.error(t),[3,4];case 3:return v(!1),[7];case 4:return[2]}}))}))}function C(e){return Cs(this,void 0,void 0,(function(){var t,n;return Is(this,(function(r){switch(r.label){case 0:return"image"!==e.type?[3,2]:[4,P(e.imageId)];case 1:r.sent(),r.label=2;case 2:return t=null===(n=i.svgs)||void 0===n?void 0:n.filter((function(t){return t.id!==e.id})),[4,o.updatePluginParameters(Ts(Ts({},i),{svgs:t}))];case 3:return r.sent(),[4,Ps(o,t)];case 4:return r.sent(),o.notice("Svg deleted successfully!"),[2]}}))}))}function I(e){return Cs(this,void 0,void 0,(function(){var t,n;return Is(this,(function(r){switch(r.label){case 0:return t=null===(n=i.svgs)||void 0===n?void 0:n.map((function(t){return t.id===e.id?Ts(Ts({},t),{filename:e.filename}):t})),[4,o.updatePluginParameters(Ts(Ts({},i),{svgs:t}))];case 1:return r.sent(),o.notice("Svg renamed successfully!"),[2]}}))}))}return E&&(r=function(e){return new Au(e)}({apiToken:E,environment:S})),(0,e.jsx)(T,{ctx:o,children:(0,e.jsxs)("div",{className:"layout",children:[(0,e.jsx)(Es,{value:u,onChangeSvg:s,filename:c,onChangeFilename:f}),(0,e.jsxs)("div",{className:"PageScreen-module__uploadContainer--unBcu",children:[d&&(0,e.jsx)(Io,{}),!d&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(jo,{disabled:!Vu(u),onClick:function(){return function(e){return Cs(this,void 0,void 0,(function(){return Is(this,(function(t){switch(t.label){case 0:return w?[4,k(e)]:[3,2];case 1:case 3:return t.sent(),[2];case 2:return[4,O(e)]}}))}))}(u)},leftIcon:(0,e.jsx)(Ss,{}),children:"Upload raw svg"}),E&&(0,e.jsx)("div",{children:(0,e.jsx)(Vo,{name:"uploadToMedia",id:"uploadToMedia",label:"Upload SVG to the Media library",value:w,onChange:function(e){return _(e)}})})]})]}),(0,e.jsx)("h3",{className:"h2",children:"Uploaded svgs"}),0===(null===(n=i.svgs)||void 0===n?void 0:n.length)&&(0,e.jsx)("p",{children:"Nothing to show (yet)"}),(0,e.jsx)(fs,{svgs:i.svgs,onDelete:y?void 0:C,onShowUpload:function(e){return Cs(this,void 0,void 0,(function(){var t;return Is(this,(function(n){switch(n.label){case 0:return t=null,"image"!==e.type?[3,2]:[4,o.editUpload(e.imageId)];case 1:t=n.sent(),n.label=2;case 2:return t&&t.deleted?[4,C(e)]:[3,4];case 3:n.sent(),n.label=4;case 4:return t&&t.attributes.basename!==e.filename?[4,I(Ts(Ts({},e),{filename:t.attributes.basename}))]:[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},onShowRaw:function(e){return Cs(this,void 0,void 0,(function(){var t;return Is(this,(function(n){switch(n.label){case 0:return t=null,"svg"!==e.type?[3,2]:[4,o.openModal({id:co,title:"Raw details",width:"s",parameters:{rawSvg:e}})];case 1:t=n.sent(),n.label=2;case 2:return t&&t.deleted?[4,C(e)]:[3,4];case 3:n.sent(),n.label=4;case 4:return t&&t.filename!==e.filename?[4,I(Ts(Ts({},e),{filename:t.filename}))]:[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},isLoading:y,showTag:!0})]})})}var Ls=function(){return Ls=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ls.apply(this,arguments)},Ds=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Rs(t){var n=t.ctx,r=n.plugin.attributes.parameters,o=n.parameters,i=(0,b.useState)(o.selectedSvgs||[]),a=i[0],u=i[1],s=(0,b.useState)(o.showAllSvgs||!1),l=s[0],c=s[1];return(0,b.useEffect)((function(){n.setParameters(Ls(Ls({},o),{selectedSvgs:l?[]:a,showAllSvgs:l}))}),[a,l]),(0,e.jsxs)(T,{ctx:n,children:[(0,e.jsx)("h2",{className:"FieldExtensionConfigScreen-module__heading--ZG1IO",children:"Select the svgs that are selectable for the user"}),(0,e.jsx)("div",{className:"FieldExtensionConfigScreen-module__switch--g3jVD",children:(0,e.jsx)(Vo,{name:"showAllSvgs",id:"showAllSvgs",label:"Select all SVGs",hint:"When this is selected you can select all SVGs uploaded in this field",value:l,onChange:c})}),(0,e.jsx)(fs,{svgs:r.svgs,activeSvgs:l?r.svgs:o.selectedSvgs,onClick:function(e){var t;if(null===(t=null==a?void 0:a.map((function(e){return e.id})))||void 0===t?void 0:t.includes(e.id)){var n=null==a?void 0:a.filter((function(t){return t.id!==e.id}));u(n)}else u(Ds(Ds([],a,!0),[e],!1))},disabled:l,showTag:!0})]})}var Fs=o(8156),As=o.n(Fs);function Ms(t){var n=t.ctx,r=String(As()(n.formValues,n.fieldPath)),o=n.plugin.attributes.parameters,i=n.parameters,a=i.showAllSvgs?o.svgs:i.selectedSvgs,u=(0,e.jsx)("p",{children:"No SVG images to show"});return r&&(u=(0,e.jsx)("div",{className:"FieldExtension-module__content--JmNOb",children:(0,e.jsx)(us,{size:"s",image:{id:n.field.id,raw:r,type:"svg"},onDelete:function(){n.setFieldValue(n.fieldPath,"")}})})),!r&&a&&a.length>0&&(u=(0,e.jsx)(fs,{svgs:a,onClick:function(e){n.setFieldValue(n.fieldPath,e.raw)},size:"s"})),(0,e.jsx)(T,{ctx:n,children:u})}const Vs=JSON.parse('{"rI":"_SidebarPanel_4uwco_1","MR":"_SidebarPanel__header_4uwco_5","CI":"_SidebarPanel__header__title_4uwco_30","n5":"_SidebarPanel__header__chevron_4uwco_36","w0":"_SidebarPanel__content_4uwco_42","FT":"_SidebarPanel__content--no-padding_4uwco_47"}');function zs(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))}function Us(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))}function qs(e){var t,n=e.startOpen,r=void 0!==n&&n,o=e.title,i=e.children,a=e.noPadding,u=(0,b.useState)(r),s=u[0],l=u[1];return b.createElement("div",{className:Vs.rI},o&&b.createElement("button",{type:"button",className:Vs.MR,onClick:function(){l(!s)}},b.createElement("div",{className:Vs.CI},o),b.createElement("div",{className:Vs.n5},s?b.createElement(zs,null):b.createElement(Us,null))),s&&b.createElement("div",{className:E()(Vs.w0,(t={},t[Vs.FT]=a,t))},i))}var Hs="RawSvgViewer-module__button--JR2Fm",Bs="RawSvgViewer-module__buttonList--bMN0E",$s="RawSvgViewer-module__deleteButton--DuioO",Gs="RawSvgViewer-module__editing--LVDdB",Ys="RawSvgViewer-module__editingText--wLDy_",Ws="RawSvgViewer-module__header--_aaee",Qs="RawSvgViewer-module__input--i7vSo",Ks="RawSvgViewer-module__rawCode--hMDfX",Xs="RawSvgViewer-module__svgLogo--ROrY7",Js="RawSvgViewer-module__title--R0gYS",Zs=function(){return Zs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zs.apply(this,arguments)};function el(t){var n,r=t.svg,o=t.onRename,i=t.onDelete,a=(0,b.useState)(!1),u=a[0],s=a[1],l=(0,b.useState)(r.filename),c=l[0],f=l[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:E()(Ws,(n={},n[Gs]=u,n)),children:[(0,e.jsx)("div",{className:Xs,dangerouslySetInnerHTML:{__html:r.raw}}),(0,e.jsxs)("div",{children:[u?(0,e.jsx)("input",{className:Qs,value:c,onChange:function(e){return f(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&o&&o(Zs(Zs({},r),{filename:c}))}}):(0,e.jsx)("h2",{className:E()("h3",Js),children:c}),(0,e.jsx)("div",{className:Bs,children:u?(0,e.jsx)("p",{className:Ys,children:"Press Enter to confirm"}):(0,e.jsxs)(e.Fragment,{children:[o&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{className:Hs,type:"button",onClick:function(){s(!0)},children:(0,e.jsx)("span",{children:"Rename"})}),(0,e.jsx)("span",{children:"•"})]}),i&&(0,e.jsx)("button",{className:E()(Hs,$s),type:"button",onClick:function(){return i(r)},children:(0,e.jsx)("span",{children:"Delete"})})]})})]})]}),(0,e.jsx)(qs,{title:"Raw data",startOpen:!0,children:(0,e.jsx)("pre",{className:Ks,children:r.raw})})]})}var tl=function(){return tl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tl.apply(this,arguments)};function nl(t){var n=t.ctx,r=n.parameters;return(0,e.jsx)(T,{ctx:n,children:r.rawSvg?(0,e.jsx)(el,{svg:r.rawSvg,onDelete:function(e){n.resolve(tl(tl({},e),{deleted:!0}))},onRename:function(e){n.resolve(e)}}):(0,e.jsx)("p",{children:"Nothing to show here"})})}var rl=o(5338),ol=document.getElementById("root"),il=(0,rl.H)(ol);function al(t){return il.render((0,e.jsx)(b.StrictMode,{children:t}))}var ul=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},sl=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};!function(e){var t,r,o,b;void 0===e&&(e={}),t=this,r=void 0,b=function(){var t,r,o,b,w,_,E,S,x,O,k,P,T,C,I,N,j,L,D,R,F,A,M;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(V){switch(V.label){case 0:return t=e.assetSources,r=e.mainNavigationTabs,o=e.settingsAreaSidebarItemGroups,b=e.contentAreaSidebarItems,w=e.manualFieldExtensions,_=e.itemFormSidebarPanels,E=e.itemFormSidebars,S=e.itemFormOutlets,x=null,O=null,k=n()({methods:{sdkVersion:function(){return"0.2.0"},implementedHooks:function(){return Object.fromEntries(Object.entries(e).map((function(e){var t=e[0],n=e[1];return"function"==typeof n?[t,!0]:[t,n]})))},assetSources:t,mainNavigationTabs:r,settingsAreaSidebarItemGroups:o,contentAreaSidebarItems:b,manualFieldExtensions:w,itemFormSidebarPanels:_,itemFormSidebars:E,itemFormOutlets:S,overrideFieldExtensions:v(e.overrideFieldExtensions),customMarksForStructuredTextField:v(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:v(e.customBlockStylesForStructuredTextField),onChange:function(e){x&&x(e)},callMethodMergingBootCtx:function(e,t,n){return O?O(e,t,n):null}}}),[4,k.promise];case 1:return[4,(P=V.sent()).getSettings()];case 2:return T=V.sent(),i(P,T)&&(C=T,x=function(e){C=e},O=function(t,n,r){var o;if(t in e)return(o=e)[t].apply(o,y(y([],n,!1),[m(m(m({},P),C),r)],!1))},e.onBoot&&e.onBoot(m(m({},P),C))),a(P,T)&&(x=M=function(t){e.renderPage&&e.renderPage(t.pageId,m(m({},P),t))},M(T)),u(P,T)&&(I=g(P),x=M=function(t){e.renderConfigScreen&&e.renderConfigScreen(m(m(m({},P),t),I))},M(T)),s(P,T)&&(N=g(P),x=M=function(t){e.renderModal&&e.renderModal(t.modalId,m(m(m({},P),t),N))},M(T)),h(P,T)&&(j=g(P),x=M=function(t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,m(m(m({},P),t),j))},M(T)),l(P,T)&&(L=g(P),x=M=function(t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,m(m(m({},P),t),L))},M(T)),c(P,T)&&(D=g(P),x=M=function(t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,m(m(m({},P),t),D))},M(T)),f(P,T)&&(R=g(P),x=M=function(t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,m(m(m({},P),t),R))},M(T)),p(P,T)&&(F=g(P),x=M=function(t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,m(m(m({},P),t),F))},M(T)),d(P,T)&&(A=g(P),x=M=function(t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,m(m(m({},P),t),A))},M(T)),[2]}}))},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{u(b.next(e))}catch(e){n(e)}}function a(e){try{u(b.throw(e))}catch(e){n(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}u((b=b.apply(t,r||[])).next())}))}({onBoot:function(e){return ul(this,void 0,void 0,(function(){var t;return sl(this,(function(n){switch(n.label){case 0:return t=e.plugin.attributes.parameters,[4,Ps(e,t.svgs)];case 1:return n.sent(),[2]}}))}))},renderConfigScreen:function(t){return al((0,e.jsx)(wo,{ctx:t}))},mainNavigationTabs:function(e){var t,n,r,o=e.plugin.attributes.parameters;if(!e.currentRole.meta.final_permissions.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)!==ro.MainNavigationTabs)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||ho[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||vo[0].value];return[{label:uo,icon:lo,placement:i,pointsTo:{pageId:"".concat(so,"--").concat(e.plugin.id)}}]},contentAreaSidebarItems:function(e){var t,n,r,o=e.plugin.attributes.parameters;if(!e.currentRole.meta.final_permissions.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)!==ro.ContentAreaSidebarItems)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||ho[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||mo[0].value];return[{label:uo,icon:lo,placement:i,pointsTo:{pageId:"".concat(so,"--").concat(e.plugin.id)}}]},settingsAreaSidebarItemGroups:function(e){var t,n,r,o=e.plugin.attributes.parameters;return e.currentRole.meta.final_permissions.can_edit_schema||(null===(t=o.pageType)||void 0===t?void 0:t.value)===ro.SettingsAreaSidebarItemGroups?[{label:"Plugin",placement:[(null===(n=o.placement)||void 0===n?void 0:n.value)||ho[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||yo[0].value],items:[{label:uo,icon:lo,pointsTo:{pageId:"".concat(so,"--").concat(e.plugin.id)}}]}]:[]},renderPage:function(t,n){if(t==="".concat(so,"--").concat(n.plugin.id))return al((0,e.jsx)(js,{ctx:n}))},renderModal:function(t,n){if(t===co)return al((0,e.jsx)(nl,{ctx:n}))},manualFieldExtensions:function(){return[{id:"svg-selector",name:"SVG Selector",type:"editor",fieldTypes:["string","text"],configurable:!0}]},renderManualFieldExtensionConfigScreen:function(t,n){return al((0,e.jsx)(Rs,{ctx:n}))},renderFieldExtension:function(t,n){return al((0,e.jsx)(Ms,{ctx:n}))},buildItemPresentationInfo:function(e,t){return ul(this,void 0,void 0,(function(){var n,r,o,i,a,u,s,l,c,f,p,d,h,m,y,v,g,b,w,_;return sl(this,(function(E){switch(E.label){case 0:return n=e.relationships.item_type.data.id,r=t.itemTypes[n],o=null===(v=null===(y=r.relationships)||void 0===y?void 0:y.image_preview_field.data)||void 0===v?void 0:v.id,i=o&&(null===(g=t.fields[o])||void 0===g?void 0:g.attributes.api_key),(null==(a=i?e.attributes[i]:null)?void 0:a.upload_id)?[2,void 0]:(u=null===(w=null===(b=r.relationships)||void 0===b?void 0:b.title_field.data)||void 0===w?void 0:w.id,s=u&&(null===(_=t.fields[u])||void 0===_?void 0:_.attributes.api_key),l=s?e.attributes[s]:"",[4,t.loadFieldsUsingPlugin()]);case 1:return c=E.sent(),f=t.plugin.id,p=c.filter((function(e){return e.attributes.appearance.editor===f})),d=r.relationships.fields.data.map((function(e){return e.id})),h=function(){for(var n,r=0,o=p;r<o.length;r++){var i=o[r].id,a=null===(n=t.fields[i])||void 0===n?void 0:n.attributes.api_key;if(d.includes(i)&&a){var u=e.attributes[a],s="string"==typeof u?u.trim():void 0;if(s)return s}}}(),h?(m=h?btoa(h):void 0,[2,{title:l,imageUrl:m?"data:image/svg+xml;base64,".concat(m):void 0}]):[2,void 0]}}))}))}})})()})();
|