@fugood/bricks-cli 2.26.0-beta.3 → 2.26.0-beta.31
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/README.md +77 -6
- package/lib/1010.js +1 -1
- package/lib/1178.js +1 -1
- package/lib/1215.js +1 -1
- package/lib/1374.js +4 -0
- package/lib/1708.js +8 -8
- package/lib/1936.js +1 -1
- package/lib/2486.js +1 -1
- package/lib/2517.js +8 -0
- package/lib/2557.js +1 -1
- package/lib/3223.js +1 -1
- package/lib/3690.js +1 -1
- package/lib/3774.js +2 -2
- package/lib/{6842.js → 39.js} +1 -1
- package/lib/4456.js +2 -2
- package/lib/4485.js +1 -0
- package/lib/4530.js +10 -10
- package/lib/5698.js +1 -0
- package/lib/6194.js +2 -2
- package/lib/6818.js +1 -1
- package/lib/7294.js +2 -2
- package/lib/7494.js +12 -3
- package/lib/7511.js +3 -1
- package/lib/831.js +1 -1
- package/lib/8937.js +1 -0
- package/lib/907.js +403 -86
- package/lib/9320.js +23 -2
- package/lib/9387.js +5 -5
- package/lib/9439.js +2668 -0
- package/lib/9663.js +1 -1
- package/lib/devtools.js +1 -0
- package/lib/index.js +123 -106
- package/lib/lib.js +423 -97
- package/lib/simulator-host-bridge.cjs +1 -1
- package/lib/simulator-main.mjs +6 -6
- package/package.json +7 -6
- package/lib/3593.js +0 -1
- package/lib/563.js +0 -4
- package/lib/6042.js +0 -1
- package/lib/6645.js +0 -1
- package/lib/7233.js +0 -2546
- package/lib/7574.js +0 -1
- package/lib/7648.js +0 -1
- package/lib/9590.js +0 -7
package/lib/7511.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export const __rspack_esm_id=7511;export const __rspack_esm_ids=[7511];export const __webpack_modules__={66422(e,t){let a=e=>`PROPERTY_BANK_DATA_NODE_${e}`,i={isLocalSyncMainDevice:{id:a("325068e3-89b6-4c6a-942b-126d38c84a62"),title:"SYSTEM: Is Local Sync Main Device",description:"The current device is main for local sync",type:"bool",value:!0},currentCanvasId:{id:a("2dfeb635-deb4-481a-9d17-ea7b1fe19f74"),title:"SYSTEM: Current Canvas ID",description:"ID for known current canvas",type:"string",value:""},previousCanvasId:{id:a("2971e463-0b0e-45b7-bbfb-a01d8fd49db3"),title:"SYSTEM: Previous Canvas ID",description:"ID for known previous canvas",type:"string",value:""},canvasIdHistory:{id:a("1a086f39-817d-40ed-92f0-5a999535d3dd"),title:"SYSTEM: Change Canvas History",description:"Change Canvas ID History (Limit: 10)",type:"array",schema:{type:"string",allowNewItem:!1,allowCustomProperty:!1},value:[]},rootSubspaceInfo:{id:a("c0817f4a-1ff3-40ed-9cbf-71d8cefd2cd9"),title:"SYSTEM: Root Subspace Info",description:"Root Subspace Information",type:"object",value:{}},subspaceInfo:{id:a("2657ec09-7323-46c3-a96e-3d8b5a0f79b3"),title:"SYSTEM: Current Subspace Info",description:"Current Subspace Information",type:"object",value:{}},uniqueID:{id:a("6f4a543f-a88a-4a83-bf53-223259263be3"),title:"SYSTEM: Unique ID",description:"Unique ID of current device",type:"string",value:"unknown"},appVersion:{id:a("d614a258-2a45-4f91-9f6b-3936038cb2b1"),title:"SYSTEM: App Version",description:"App Version of current installed BRICKS Foundation app",type:"string",value:"unknown"},lastUpdateTime:{id:a("956f3b3e-cb0b-47ca-8119-65663910d110"),title:"SYSTEM: Last Update Time",description:"Last update time of current installed BRICKS Foundation app",type:"string",value:"2019-07-09T03:32:27.058Z"},deviceName:{id:a("7b9d9ad4-e9a2-47cd-91d3-b64187895c16"),title:"SYSTEM: Device Name",description:"Name of current device",type:"string",value:"Default Device Name"},deviceType:{id:a("b0beae12-e45e-4870-ae15-858eeac566fa"),title:"SYSTEM: Device Type",description:"Type of current device (Handset, Tv, Tablet)",type:"string",value:"Tv"},operationMode:{id:a("2e715d3b-92bf-4761-b5c0-ca21f7c1ada8"),title:"SYSTEM: Operation Mode",description:"Operation Mode of current device (android, ios, ...)",type:"string",value:"android"},operationVersion:{id:a("fa886963-0a16-4b5f-b4ea-6c25b049db03"),title:"SYSTEM: Operation Version",description:"Operation Version of current device",type:"string",value:""},screenWidth:{id:a("2942470a-c3bc-413e-8f2c-30a89aded3f8"),title:"SYSTEM: Screen Width",description:"Width of current device main screen",type:"number",value:1280},screenHeight:{id:a("4f031e27-f67b-40e0-a317-9f6c5215d97d"),title:"SYSTEM: Screen Height",description:"Height of current device main screen",type:"number",value:768},screenScale:{id:a("c3c9b7aa-1dc1-4be1-8a4a-d9e299b9eeaa"),title:"SYSTEM: Screen Scale",description:"Scale of current device main screen",type:"number",value:2},screenFontScale:{id:a("0312f380-d525-4938-82d2-5b35ef8ef1e8"),title:"SYSTEM: Screen Font Scale",description:"Font scale of current device main screen",type:"number",value:1},orientation:{id:a("4f584f51-a250-4f97-a2f8-d5e6a3affb4f"),title:"SYSTEM: Orientation",description:"Orientation of current device main screen",type:"string",value:"landspace"},touchAvailable:{id:a("1fe7555f-df41-43ce-a268-3ea1b5efda6d"),title:"SYSTEM: Touch Available",description:"Is touch available of current device main screen?",type:"bool",value:!0},soundAvailable:{id:a("bf839498-f7d6-4212-ac3a-b409e3ad77a5"),title:"SYSTEM: Sound Available",description:"Is sound available of current device?",type:"bool",value:!0},cameraAvailable:{id:a("4878f3c2-8bb8-4c94-855c-06bda5a287d5"),title:"SYSTEM: Camera Available",description:"Is camera available of current device?",type:"bool",value:!0},audioInputAvailable:{id:a("4854b259-96c1-40d7-b17b-47156b4698dc"),title:"SYSTEM: Audio Input Available",description:"Is audio input available of current device?",type:"bool",value:!1},networkType:{id:a("1cbb1756-e53c-45a9-be23-5d84a214e144"),title:"SYSTEM: Network Type",description:"Network Type of current device",type:"string",value:"wifi"},networkConnected:{id:a("687b62fe-ead5-417a-b415-9bd5233784a4"),title:"SYSTEM: Network Connected",description:"Is Network connected of current device?",type:"bool",value:!0},networkIpAddress:{id:a("41971ba7-8294-4aa6-a425-ecd39853c3e6"),title:"SYSTEM: Network IP Address",description:"Current network IP address",type:"string",value:""},networkDetails:{id:a("9351fbfc-4ace-477a-b05d-41ac9b05087d"),title:"SYSTEM: Network Details",description:"Network details, provide different data depends on Network Type",type:"object",value:null},isInternetReachable:{id:a("e367ae7e-46ec-46d0-b87d-51e544591ff9"),title:"SYSTEM: Internet Reachable",description:"Is Internet reachable?",type:"bool",value:!0},isWifiEnabled:{id:a("be395305-fb85-4d05-8506-22a4ae8c7b9e"),title:"SYSTEM: Wifi Enabled",description:"Is WiFi enabled?",type:"bool",value:!0},deviceDisplayName:{id:a("76356a9a-fc46-11ec-9905-db53d6811cb7"),title:"SYSTEM: Device Display Name",description:"Current device display name",type:"string",value:""},workspaceName:{id:a("d857125e-0401-40f1-b768-56190aa8e147"),title:"SYSTEM: Workspace Name",description:"Current workspace name",type:"string",value:""},applicationInfo:{id:a("935d3322-84aa-4465-b1e7-241d1f024267"),title:"SYSTEM: Application Info",description:"Current application info",type:"object",value:{}},applicationName:{id:a("df395fd6-a754-4b60-8bac-1360933e6707"),title:"SYSTEM: Application Name",description:"Current application name",type:"string",value:""},deviceID:{id:a("8b5c2d9e-f0a1-4b2c-8d3e-4f5a6b7c8d9e"),title:"SYSTEM: Device ID",description:"Device ID of current device",type:"string",value:"unknown"},macAddress:{id:a("f01fcc78-0723-11ed-ac00-877339de1030"),title:"SYSTEM: MAC Address",description:"Network adapter MAC address of current device",type:"string",value:""},bindDeviceCode:{id:a("1ca90262-3584-11ed-8c9a-174949844872"),title:"SYSTEM: Bind Device Code",description:"The passcode to bind the device",type:"string",value:"",hide:!0},bindDeviceCodeExpire:{id:a("5b52d204-3584-11ed-bb5e-abb4d270daf1"),title:"SYSTEM: Bind Device Code Expire Time",description:"The expire time of bind passcode",type:"string",value:"",hide:!0},bindDeviceUrl:{id:a("833a7db2-3584-11ed-88dd-3b3d3ff58855"),title:"SYSTEM: Bind Device URL",description:"The URL to bind the device",type:"string",value:"",hide:!0},bindDeviceUseApplication:{id:a("631bbce8-9c90-4590-b8ec-8b27f4a0e50b"),title:"SYSTEM: Selected Application on Bind Device",description:"Current selected use application info on Bind Device",type:"object",value:null,hide:!0},isApplicationPreview:{id:a("c673967a-3996-11ed-96d9-efbc3f7eac53"),title:"SYSTEM: Is Preview Mode",description:"Is current in preview mode?",type:"bool",value:"",hide:!0},isSupportAuthInDevice:{id:a("beb2a666-3e18-11ed-bdab-6f0cb082fa67"),title:"SYSTEM: Is Support Auth In Device",description:"Is current device support auth in device?",type:"bool",value:"",hide:!0},env:{id:a("74e7a574-1099-4fe5-b193-8a9ea7d20ed0"),title:"SYSTEM: Environment Variables",description:"Environment Variables of the device",type:"object",value:{}},isViewDebugModeEnabled:{id:a("3f61c4f6-1e02-492e-8e4c-a8dc4a5bc101"),title:"SYSTEM: Is View Debug mode Enabled",description:"Is View Debug mode enabled?",type:"bool",value:!1},language:{id:a("f0ed0a03-6195-459f-9ffe-bca61923f94e"),title:"SYSTEM: Language",description:"Language of the device",type:"string",value:""},aiFilters:{id:a("3ffc1e98-8f65-4cc8-a949-3da8d2092ccb"),title:"SYSTEM: AI Filters",description:"AI filters configuration from the application",type:"array",value:[]},systemOpenAIApiKey:{id:a("a1b2c3d4-5e6f-7890-abcd-ef1234567890"),title:"SYSTEM: OpenAI API Key",description:"System OpenAI API Key (only available if application enabled)",type:"string",value:""},systemAnthropicApiKey:{id:a("b2c3d4e5-6f78-9012-bcde-f23456789012"),title:"SYSTEM: Anthropic API Key",description:"System Anthropic API Key (only available if application enabled)",type:"string",value:""},systemGeminiApiKey:{id:a("c3d4e5f6-7890-1234-cdef-345678901234"),title:"SYSTEM: Gemini API Key",description:"System Gemini API Key (only available if application enabled)",type:"string",value:""},ggmlBackendDevices:{id:a("9e8f7a6b-5c4d-3e2f-1a0b-9c8d7e6f5a4b"),title:"SYSTEM: GGML Backend Devices",description:"Available GGML backend devices with supported generators",type:"array",schema:{type:"object",allowNewItem:!1,allowCustomProperty:!1},value:[]}};t.idMap=Object.entries(i).reduce((e,[t,a])=>(e[t]=a.id,e),{}),Object.fromEntries(Object.entries(t.idMap).map(([e,t])=>[t,e])),t.MI=Object.entries(i).reduce((e,[t,a])=>{let{id:i,...r}=a;return e[t]=r,e},{}),Object.keys(t.MI)},18501(e,t,a){let{docs:i}=a(5867);t.isCommand=e=>!!(e&&e.type&&e.type.startsWith("command-node-")),t.getPorts=e=>e?Array.isArray(e)?e:[e]:[],t.getCommandCallbackFromPort=(e,a)=>{let r=e[a];if(!t.isCommand(r))return null;let n=i[r.type.replace("command-node-","")]?.commands?.[r.properties?.command];return n?.iterateeFrom||n?.invocationFrom||null},t.checkDisableTriggerCommand=(e,a)=>t.getPorts(e[a.id]?.in?.[a.port]).some(e=>e?.disable_trigger_command),t.findCircularReferenceIds=e=>{let a,i=(a=new Map,Object.keys(e).reduce((i,r)=>{let n=[];return Object.values(e[r]?.out||{}).forEach(i=>{t.getPorts(i).forEach(i=>{((e,a,i)=>{var r;return!!a&&!!e[a.id]&&!(a.port===(r=a.id,i.has(r)||i.set(r,t.getCommandCallbackFromPort(e,r)),i.get(r))||t.checkDisableTriggerCommand(e,a))})(e,i,a)&&n.push(i.id)})}),i[r]=n,i},{})),r=new Map;return Object.keys(e).filter(t=>e[t]?.type==="data-node").filter(e=>((e,t,a)=>{if(a.has(e))return a.get(e);let i=[{id:e,edgeIndex:0,reachesCycle:!1}],r=new Set([e]);for(;i.length>0;){let e=i[i.length-1],n=t[e.id]||[];if(e.reachesCycle||e.edgeIndex>=n.length){r.delete(e.id),a.set(e.id,e.reachesCycle),i.pop(),e.reachesCycle&&i.length>0&&(i[i.length-1].reachesCycle=!0);continue}let s=n[e.edgeIndex];if(e.edgeIndex+=1,a.has(s)){a.get(s)&&(e.reachesCycle=!0);continue}if(r.has(s)){e.reachesCycle=!0;continue}r.add(s),i.push({id:s,edgeIndex:0,reachesCycle:!1})}return a.get(e)||!1})(e,i,r))},t.hasCircularReference=e=>t.findCircularReferenceIds(e).length>0;let r=(e={})=>Object.entries(e).reduce((e,[t,a])=>(e[t]=Array.isArray(a)?a.slice():a,e),{}),n=new WeakSet,s=(e,t,a)=>{if(!a)return;let i=((e,t)=>{let a=e[t];if(!a)return e[t]=[],e[t];if(!Array.isArray(a))return e[t]=[a],e[t];if(!n.has(a)){let e=0;for(let t of a)t&&(a[e]=t,e+=1);a.length=e,n.add(a)}return a})(e,t);(Array.isArray(a)?a:[a]).forEach(e=>{e&&i.push(e)})};t.getCalcMap=e=>e?.script_map||e?.scriptMap||e?.map||{},t.composeMap=e=>Object.values(e).reduce((e,a)=>Object.entries(t.getCalcMap(a)).reduce((e,[a,i])=>{if(e[a]){if(t.isCommand(i))throw Error(`Doesn't allow same command id in another map, ${a}`);let r=e[a];Object.keys(i?.in||{}).forEach(e=>{s(r.in,e,i.in[e])}),Object.keys(i?.out||{}).forEach(e=>{s(r.out,e,i.out[e])})}else e[a]={...i,in:r(i?.in),out:r(i?.out)};return e},e),{})},86343(e,t,a){let{v4:i}=a(45620),r=a(95479),n=a(56005),{nameMap:s,brickMapping:o,generatorMapping:c}=a(63981);t.idByItem=(e={})=>e.canvas_id||e.subspace_id||e.brick_id||e.generator_id||e.property_bank_id||e.property_bank_calc_id||e.bank_id||e.scene_id,t.getAnimationType=e=>e.type||e.compose_type||e.composeType,t.cleanUpAnimationMap=e=>Object.entries(e).reduce((e,[t,a])=>((a.type||a.compose_type)&&(e[t]=a),e),{}),t.matchItemByItem=(e,t)=>{let a;if(!e)return!1;switch("string"==typeof t&&(a=t),e.type){case"brick":return e.brick_id===(a||t.brick_id);case"subspace":return e.subspace_id===(a||t.subspace_id);case"canvas":return e.canvas_id===(a||t.canvas_id);case"generator":return e.generator_id===(a||t.generator_id);case"property_bank":return e.property_bank_id===(a||t.property_bank_id);default:return!1}},t.makePasscode=()=>i(),t.kindOneOfTypes={string:["color","datetime","id","graphql","rich-text-content","sandbox-script","llm-prompt","media-resource-image","media-resource-video","media-resource-audio","media-resource-file","lottie-file-uri","rive-file-uri","ggml-model-asset","gguf-model-asset","mlx-model-asset","binary-asset","scene3d-objects"],number:["unit"],object:["tts-speaker-config"],"array-object":["llm-tools","llm-messages","mcp-server-resources","mcp-server-tools","mcp-server-prompts"]},t.getKindOneOfTypes=(e,a)=>"array"===e?"object"===a?t.kindOneOfTypes[`${e}-${a}`]:void 0:t.kindOneOfTypes[e],t.unitOneOfTypes=["grid","px","ms"],t.idOneOfTypes=["canvas","brick","generator","animation","property_bank"],t.typeToName={brick:"Brick",generator:"Generator",subspace:"Subspace",canvas:"Canvas",animation:"Animation",property_bank:"Data",property_bank_calc:"Calculation"},t.getBrickName=(e,a,i)=>{let n;if(!a)return e.toUpperCase();if(a.title)return a.title;switch(e){case"bank":n="BANK";break;case"subspace":n="SUBSPACE";break;case"canvas":n="CANVAS";break;case"animation":n=`<${r(t.getAnimationType(a))}>`;break;case"property_bank":n="<Data>";break;case"property_bank_calc":n="<Map>";break;case"state_group":n="<Switch Case>";break;default:n=`<${s[a.template_key||a.templateKey]||"Unknown"}>`}return i&&i.length>10?n+=` (${i.replace(/[A-Z_]+/g,"").substr(0,6)}...)`:i&&(n+=` (${i})`),n},t.getEventLabel=(e,{templateKey:t,itemType:a}={})=>{if(!e)return"";let i=e;return"subspace"===a?i=e.replace("SUBSPACE_ACTION_",""):t&&(i=e.replace(`${t}_`,"").replace("CANVAS_","")),r(n(r(i)))},t.getCallInternalActions=e=>{let t=o[e]||c[e];if(t)return t.callInternalActions},t.mapToList=(e,a)=>Object.entries(a).reduce((a,[i,r])=>(a.push({id:i,...r,title:t.getBrickName(e,r,i)}),a),[]);let d={subspaceMap:"subspace",brickMap:"brick",generatorMap:"generator",propertyBankMap:"property_bank",propertyAvailableToAdd:"property_bank",canvasMap:"canvas",animationMap:"animation"},l={};t.mapToListForDerivedState=(e,a,i,r)=>{let n=i[e]||l;return n!==r[e]?{[e]:n,[a]:t.mapToList(d[e],n)}:{}},t.arrayTypePrefix="array of ",t.propertyBankTypes=["string","number","bool","object","any",`${t.arrayTypePrefix}string`,`${t.arrayTypePrefix}number`,`${t.arrayTypePrefix}bool`,`${t.arrayTypePrefix}object`],t.animationRunTypes=["once","loop"],t.stopPropagationOnKeyBackspace=e=>{8===e.keyCode&&e.stopPropagation()},t.nestedTypes=["object","array","any"],t.isPropertyBankTypeNested=e=>t.nestedTypes.includes(e),t.propertyTypeToSchema=e=>{let a=e.indexOf(t.arrayTypePrefix)>-1,i=e.replace(t.arrayTypePrefix,"");return{type:i,properties:"object"===i?{}:void 0,allowNewItem:a,allowCustomProperty:"object"===i}}},33770(e,t,a){let{idMap:i}=a(66422),{forEachEventAction:r,getActionParam:n}=a(78078),s="PROPERTY_BANK_DATA_NODE_",o=new Set(Object.values(i||{}).filter(e=>"string"==typeof e&&e.startsWith(s)));e.exports=function(e){let t,a,i=[],c=(t=new Set(o),Object.values(e.subspace_map||{}).forEach(e=>{e&&"object"==typeof e&&Object.keys(e.property_bank_map||{}).forEach(e=>t.add(e))}),t),d=(a=new Set,Object.values(e.subspace_map||{}).forEach(e=>{e&&"object"==typeof e&&Object.keys(e.canvas_map||{}).forEach(e=>a.add(e))}),a);return r(e,(e,t)=>{if("PROPERTY_BANK_EXPRESSION"===e.action){let a;Array.isArray(a=n(e,"VARIABLES"))&&a.forEach((e,a)=>{let r=e?.id;if("string"!=typeof r||!r.startsWith(s)||c.has(r))return;let n=e.key?`\`${e.key}\``:`at index ${a}`;i.push({field:`${t}.VARIABLES[${a}].id`,message:`PROPERTY_BANK_EXPRESSION variable ${n} references data node \`${r}\`, which is not defined in any subspace.`})})}else"CHANGE_CANVAS"===e.action&&((e,t,a,i)=>{if("SYSTEM"!==e.handler)return;let r=n(e,"CANVAS_ID");"string"!=typeof r||!r||r.startsWith("PROPERTY_BANK#")||r.startsWith("VARIABLE#")||!r.startsWith("CANVAS_")||a.has(r)||i.push({field:`${t}.CANVAS_ID`,message:`CHANGE_CANVAS references canvas \`${r}\`, which is not defined in any subspace.`})})(e,t,d,i)}),i}},37517(e,t,a){let{composeMap:i,findCircularReferenceIds:r}=a(18501);e.exports=function(e){let t=[];return Object.entries(e.subspace_map||{}).forEach(([e,a])=>{if(!a||"object"!=typeof a||a.module?.link)return;let n=a.property_bank_calc_map;if(!n||0===Object.keys(n).length)return;let s=`subspace_map.${e}.property_bank_calc_map`;try{let e=i(n),a=r(e);if(a.length>0){let i=a.slice(0,5).map(t=>e[t].title||t),r=a.length>5?` and ${a.length-5} more`:"";t.push({field:s,message:`Circular reference detected in data calculation. Affected nodes: ${i.join(", ")}${r}. Please check the data connections for loops.`})}}catch(e){t.push({field:s,message:e.message})}}),t}},41900(e){e.exports={expressionFoldAcornOptions:{ecmaVersion:2022,allowReturnOutsideFunction:!0,allowAwaitOutsideFunction:!0},getUnfoldableStatementDescription:(e,t=null)=>{for(let t=0;t<e.length;t+=1){let a=e[t];if("ExpressionStatement"===a.type){let{expression:e}=a;if("AssignmentExpression"===e.type&&"Identifier"!==e.left.type)return"an assignment to a member or computed target";continue}if("VariableDeclaration"===a.type){if(a.declarations.some(e=>"Identifier"!==e.id.type||!e.init))return"a variable declaration with destructuring or no initializer";continue}if(t!==e.length-1||"ReturnStatement"!==a.type)return`an unsupported ${a.type}`}return t}}},78078(e,t,a){let{parse:i}=a(89236),{expressionFoldAcornOptions:r}=a(41900),n=(e,t)=>{let a=e.parameter_list||e.parameterList||[];if(!Array.isArray(a))return;let i=a.find(e=>(e?.input_to_receiver||e?.inputToReceiver)===t);return i?i.result_from_sender??i.resultFromSender:void 0},s=(e,t,a)=>{if(e&&"object"==typeof e){if(Array.isArray(e))return void e.forEach((e,i)=>s(e,`${t}[${i}]`,a));Object.entries(e).forEach(([e,i])=>{("event_map"===e||"eventMap"===e)&&i&&"object"==typeof i?Object.entries(i).forEach(([i,r])=>{Array.isArray(r)&&r.forEach((r,n)=>{r&&"object"==typeof r&&a(r,`${t}.${e}.${i}[${n}]`)})}):i&&"object"==typeof i&&s(i,`${t}.${e}`,a)})}},o=(e,t)=>{Object.entries(e.subspace_map||{}).forEach(([e,a])=>{!a||"object"!=typeof a||a.module?.link||s(a,`subspace_map.${e}`,t)})};e.exports=function(e){let t=[];return o(e,(e,a)=>{if("PROPERTY_BANK_EXPRESSION"!==e.action)return;let s=n(e,"EXPRESSION");if("string"!=typeof s||s.startsWith("PROPERTY_BANK#"))return;let o=(e=>{if(!e.trim())return"Expression is empty";try{i(e,r)}catch(e){return`Expression does not parse: ${e.message}`}return null})(s);o&&t.push({field:a,message:o})}),t},e.exports.forEachEventAction=o,e.exports.getActionParam=n},38890(e,t,a){let{getDocByTemplateKey:i}=a(63981),r=a(80211),n=a(45907),s=a(37517),o=a(78078),c=a(33770),d=a(69516),{lintConfig:l,lintRuleCodes:p}=a(9098),{getBrickName:u}=a(86343);t.lintConfig=l,t.lintRuleCodes=p;let f=(e,t,a,i)=>({id:e,name:"Used Deprecated Feature",data:`The \`${u("brick",t,e)}\` brick in \`${u("subspace",a,i)}\` have been deprecated, it may not work in the future, please consider to remove it. If you can't see the item, please enable \`Show Deprecated Features\` in setting.`});t.checkConfigDeprecatedFeatures=e=>{let t=[];return Object.entries(e.subspace_map||{}).forEach(([e,a])=>{a&&"object"==typeof a&&(Object.entries(a.brick_map||{}).forEach(([r,n])=>{(void 0!==n.property?.borderLeftWidth||void 0!==n.property?.borderRightWidth||void 0!==n.property?.borderTopWidth||void 0!==n.property?.borderBottomWidth)&&t.push({id:r,name:"Used Deprecated Feature",data:`In v2.16, we have been changed \`Border Width\` to \`Border Size\` (Unit \`px\` to \`grid\`). The \`${u("brick",n,r)}\` brick still used the border width. Please re-edit it to transfer to the new unit.`});let s=i(n.template_key);s?.brickMeta?.deprecated&&t.push(f(r,n,a,e))}),Object.entries(a.generator_map||{}).forEach(([r,n])=>{let s=i(n.template_key);s?.brickMeta?.deprecated&&t.push(f(r,n,a,e))}))}),t},t.checkConfig=(e,t={})=>{let a={schema:r(e),ref:n(e,t),calc:t.checkCalc?s(e):[],expression:t.checkExpressions?o(e):[],actionRef:t.checkActionRefs?c(e):[],itemsEventMap:t.checkItemsEventMaps?d(e):[]};return a.valid=0===a.schema.length&&0===a.ref.length&&0===a.calc.length&&0===a.expression.length&&0===a.actionRef.length&&0===a.itemsEventMap.length,a.message=a.schema.concat(a.ref).concat(a.calc).concat(a.expression).concat(a.actionRef).concat(a.itemsEventMap).map(({instancePath:e,field:t,message:a})=>{let i=e||t;return i?`${i}: ${a}`:a}).join("\n"),a}},69516(e,t,a){let i=a(80211),{templateSupportInnerRefs:r}=a(30302);e.exports=function(e){let t=[],a=i.ajv.getSchema("http://display.bricks.tools/event_map_camel.schema.json5");return Object.entries(e.subspace_map||{}).forEach(([e,i])=>{!i||"object"!=typeof i||i.module?.link||Object.entries(i.brick_map||{}).forEach(([i,n])=>{let s=r.find(e=>e.key===n?.template_key);s&&n.property&&s.listProps.forEach(r=>{let s=n.property[r];Array.isArray(s)&&s.forEach((n,s)=>{if(!n||"object"!=typeof n)return;let o=`subspace_map.${e}.brick_map.${i}.property.${r}[${s}]`;"event_map"in n&&t.push({field:`${o}.event_map`,message:"items-list entries store their event map in camelCase as `eventMap`; this snake_case `event_map` key is never read by the runtime or the editor (dead data, typically left by an old Short Edit write) — remove it."}),void 0!==n.eventMap&&null!==n.eventMap&&(a(n.eventMap)||a.errors.forEach(e=>{t.push({field:`${o}.eventMap${e.instancePath.split("/").filter(Boolean).map(e=>/^\d+$/.test(e)?`[${e}]`:`.${e}`).join("")}`,message:e.message})}))})})})}),t}},27899(e){let t=["x","y","width","height"],a=e=>"string"==typeof e&&e.startsWith("PROPERTY_BANK_"),i=/PROPERTY_BANK#(PROPERTY_BANK_[A-Za-z0-9_-]+)/g,r=/(?:BRICK|ANIMATION|SUBSPACE)_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/g,n=(e,t=new Set)=>{if("string"==typeof e){let a;for(i.lastIndex=0;a=i.exec(e);)t.add(a[1])}else Array.isArray(e)?e.forEach(e=>n(e,t)):e&&"object"==typeof e&&(a(e.id)&&t.add(e.id),Object.values(e).forEach(e=>n(e,t)));return t},s=(e,t)=>{if("string"==typeof e){let a;for(r.lastIndex=0;a=r.exec(e);)t.add(a[0])}else Array.isArray(e)?e.forEach(e=>s(e,t)):e&&"object"==typeof e&&Object.values(e).forEach(e=>s(e,t));return t},o=(e,t)=>{Object.entries(e.subspace_map||{}).forEach(([e,a])=>{!a||"object"!=typeof a||a.module?.link||t(e,a)})},c=(e,t)=>{o(e,(e,a)=>{Object.entries(a.canvas_map||{}).forEach(([i,r])=>{let n=Array.isArray(r?.item_list)?r.item_list:[];t({subspaceId:e,subspace:a,canvasId:i,canvas:r,items:n})})})},d=[["brick_map","brick"],["generator_map","generator"],["property_bank_map","property_bank"],["canvas_map","canvas"]],l=(e,t,a)=>{d.forEach(([i,r])=>{Object.entries(t[i]||{}).forEach(([t,n])=>{Object.entries(n?.event_map||{}).forEach(([n,s])=>{Array.isArray(s)&&a({ownerType:r,ownerId:t,eventKey:n,list:s,path:`subspace_map.${e}.${i}.${t}.event_map.${n}`})})})})},p=(e,t)=>{o(e,(e,a)=>{l(e,a,i=>{i.list.forEach((r,n)=>{t({subspaceId:e,subspace:a,...i,entry:r,index:n})})})})},u=(e,t)=>(e.parameter_list||[]).find(e=>e?.input_to_receiver===t)?.result_from_sender;e.exports={FRAME_KEYS:t,isBankNodeId:a,collectBankReads:n,forEachSubspace:o,forEachCanvas:c,forEachCanvasItem:(e,t)=>{c(e,e=>{e.items.forEach((a,i)=>{t({...e,item:a,index:i})})})},forEachEventList:l,forEachEventEntry:p,getParamValue:u,hasParamValue:(e,t)=>{let a=u(e,t);return null!=a&&""!==a},collectDynamicallyReferencedIds:e=>{let t=new Set;return p(e,({entry:e})=>{s(e?.parameter_list,t)}),s(e.automation_map,t),s(e.test_map,t),t},frameIsNumeric:e=>!!e&&t.every(t=>"number"==typeof e[t]),framesAlmostEqual:(e,a,i=.01)=>t.every(t=>Math.abs(e[t]-a[t])<=i),frameContains:(e,t,a=.01)=>e.x<=t.x+a&&e.y<=t.y+a&&e.x+e.width>=t.x+t.width-a&&e.y+e.height>=t.y+t.height-a,framesIntersect:(e,t)=>!(e.x+e.width<=t.x||t.x+t.width<=e.x||e.y+e.height<=t.y||t.y+t.height<=e.y),getItemId:e=>e?.brick_id||e?.subspace_id||null,itemHasAnimations:e=>!!e?.animations&&Object.keys(e.animations).length>0}},9098(e,t,a){let{collectDynamicallyReferencedIds:i}=a(27899),r=[a(98632),a(84223),a(92260),a(96810),a(60760),a(40566),a(31172),a(59707),a(39425)],n=r.map(e=>e.code),s=e=>Array.isArray(e)?e:"string"==typeof e&&e?e.split(",").map(e=>e.trim()).filter(Boolean):null;e.exports={lintConfig:(e,t={})=>{let a,o=s(t.only),c=s(t.ignore),d=[...o||[],...c||[]].filter(e=>!n.includes(e));if(d.length>0)throw Error(`Unknown lint rule code(s): ${d.join(", ")}. Valid codes: ${n.join(", ")}`);if(!e||"object"!=typeof e)return[];let l=r.filter(e=>(!o||o.includes(e.code))&&(!c||!c.includes(e.code)));if(0===l.length)return[];let p={configType:"module"===t.configType?"module":"app",gridStep:"number"==typeof t.gridStep&&t.gridStep>0?t.gridStep:.5,get dynamicRefIds(){return a||(a=i(e)),a}},u=[];return l.forEach(t=>{try{t.check(e,p,e=>u.push({severity:t.severity,code:t.code,path:"",subspaceId:null,itemId:null,hint:null,...e}))}catch(e){u.push({severity:"warning",code:t.code,path:"",subspaceId:null,itemId:null,message:`Lint rule crashed: ${e.message}`,hint:null})}}),u},lintRuleCodes:n}},98632(e,t,a){let{composeMap:i}=a(18501),{forEachSubspace:r,forEachEventList:n,collectBankReads:s,isBankNodeId:o,getParamValue:c}=a(27899),d=(e,t)=>t.map(t=>c(e,t)).filter(o),l={PROPERTY_BANK:{waitable:!0,targets:e=>(e.parameter_list||[]).map(e=>e?.input_to_receiver).filter(o)},PROPERTY_BANK_EXPRESSION:{waitable:!0,targets:e=>d(e,["RESULT","ERROR_RESULT"])},PROPERTY_BANK_COMMAND:{waitable:!0,targets:(e,t)=>((e,t)=>{let a=t();if(!a)return[];let i=[],r=new Set,n=(e.parameter_list||[]).map(e=>e?.input_to_receiver).filter(o);for(let e=0;e<n.length;e+=1){let t=n[e];if(r.has(t))continue;r.add(t);let s=a[t];s&&Object.values(s.out||{}).forEach(e=>{(e||[]).forEach(e=>{e?.id&&(e.id.includes("DATA_NODE")&&i.push(e.id),n.push(e.id))})})}return i})(e,t)},STORAGE_RETRIEVE:{waitable:!0,targets:e=>d(e,["STORAGE_RETRIEVE_RESULT"])},OPEN_FILE:{waitable:!0,targets:e=>d(e,["SAVE_PROPERTY","SAVE_DETAIL_PROPERTY","ERROR_SAVE_PROPERTY"])},SAVE_UPDATE_SNAPSHOT:{waitable:!0,targets:e=>d(e,["SNAPSHOT_SAVE_RESULT","SNAPSHOT_ERROR_RESULT"])},TRIGGER_APPLICATION_FILTER:{waitable:!0,targets:e=>d(e,["RESULT","ERROR_RESULT"])},TAKE_SCREENSHOT:{waitable:!1,targets:e=>d(e,["TAKE_SCREENSHOT_SAVE_PROPERTY"])}},p=/(^|_)RESULT$|_SAVE_PROPERTY$/;e.exports={code:"data-update-race",severity:"warning",description:"A data node is written without wait_async and read by a later action in the same event",check(e,t,a){r(e,(e,t)=>{let r,c=()=>{if(void 0===r)try{r=i(t.property_bank_calc_map||{})}catch{r=null}return r};n(e,t,({path:t,list:i})=>{let r=new Map;i.forEach((i,n)=>{if(!i||"object"!=typeof i)return;if("SYSTEM"===i.handler&&"DELAY"===i.action)return void r.clear();let d=new Set;(i.parameter_list||[]).forEach(e=>s(e?.result_from_sender,d)),d.forEach(s=>{let o=r.get(s);o&&(a({path:`${t}.${n}`,subspaceId:e,itemId:s,message:`\`${s}\` is written by action #${o.index} (${o.action}) without waiting, then read by action #${n} (${i.action}) — the read can still see the previous value.`,hint:o.waitable?`Set \`wait_async: true\` on action #${o.index} (${o.action}).`:`${o.action} ignores \`wait_async\` for its data write — insert a SYSTEM DELAY action between the two, or move the read into the data node's value-change event.`}),r.delete(s))});let u=((e,t)=>{if("SYSTEM"===e.handler){let a=l[e.action];if(!a)return null;let i=a.targets(e,t);return i.length>0?{targets:i,waitable:a.waitable}:null}let a=(e.parameter_list||[]).filter(e=>"string"==typeof e?.input_to_receiver&&p.test(e.input_to_receiver)&&o(e.result_from_sender)).map(e=>e.result_from_sender);return a.length>0?{targets:a,waitable:!0}:null})(i,c);if(!u)return;let f=!0===i.wait_async&&u.waitable;u.targets.forEach(e=>{f?r.delete(e):r.set(e,{index:n,action:i.action,waitable:u.waitable})})})})})}}},39425(e,t,a){let{forEachEventEntry:i,getParamValue:r}=a(27899),n=new Set(["Math","Date","Object","Array","Number","String","Boolean","JSON","RegExp","Intl","isNaN","isFinite","parseInt","parseFloat","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI"]);e.exports={code:"expression-global-variable",severity:"error",description:"A PROPERTY_BANK_EXPRESSION variable is named after a JS global and is silently ignored at runtime",check(e,t,a){i(e,({subspaceId:e,path:t,entry:i,index:s})=>{if(i?.handler!=="SYSTEM"||"PROPERTY_BANK_EXPRESSION"!==i.action)return;let o=r(i,"VARIABLES");Array.isArray(o)&&o.forEach(i=>{let r=i?.key;"string"==typeof r&&n.has(r)&&a({path:`${t}.${s}`,subspaceId:e,itemId:null,message:`Expression variable "${r}" is named after the JS global \`${r}\` and is silently ignored — the global takes precedence in the expression scope, so the bound value is never used.`,hint:`Rename the variable (e.g. "${r}Value") so the expression reads the bound value.`})})})}}},40566(e,t,a){let{forEachEventEntry:i,hasParamValue:r}=a(27899),n=[{action:"STORAGE_RETRIEVE",severity:"error",isMissing:e=>!r(e,"STORAGE_RETRIEVE_RESULT"),message:"STORAGE_RETRIEVE requires a STORAGE_RETRIEVE_RESULT parameter — without it the action throws at runtime.",hint:"Add a STORAGE_RETRIEVE_RESULT parameter pointing at a data node."},{action:"TAKE_SCREENSHOT",severity:"warning",isMissing:e=>!r(e,"TAKE_SCREENSHOT_SAVE_PROPERTY"),message:"TAKE_SCREENSHOT without TAKE_SCREENSHOT_SAVE_PROPERTY is silently skipped at runtime.",hint:"Add a TAKE_SCREENSHOT_SAVE_PROPERTY parameter pointing at a data node."},{action:"OPEN_FILE",severity:"warning",isMissing:e=>!r(e,"SAVE_PROPERTY")&&!r(e,"SAVE_DETAIL_PROPERTY"),message:"OPEN_FILE has no SAVE_PROPERTY / SAVE_DETAIL_PROPERTY — the picked file is discarded.",hint:"Add SAVE_PROPERTY (file uri) or SAVE_DETAIL_PROPERTY (file detail) parameters."},{action:"OPEN_URL",severity:"warning",isMissing:e=>!r(e,"URL"),message:"OPEN_URL has no URL parameter — the action does nothing.",hint:"Add a URL parameter."}];e.exports={code:"missing-result-param",severity:"warning",description:"An action is missing the parameter that receives or drives its effect",check(e,t,a){i(e,({subspaceId:e,path:t,entry:i,index:r})=>{if(i?.handler!=="SYSTEM")return;let s=n.find(e=>e.action===i.action);s&&s.isMissing(i)&&a({path:`${t}.${r}`,subspaceId:e,itemId:null,severity:s.severity,message:s.message,hint:s.hint})})}}},92260(e,t,a){let{forEachCanvasItem:i,frameIsNumeric:r,getItemId:n,FRAME_KEYS:s}=a(27899),o=["width","height"];e.exports={code:"off-grid-frame",severity:"warning",description:"Frame values should be multiples of the 0.5 grid step",check(e,t,a){let c=t.gridStep;i(e,({subspaceId:e,canvasId:t,item:i,index:d})=>{let l=i?.frame;if(!r(l))return;let p=s.filter(e=>{let t=l[e];return(!o.includes(e)||!(t<=c))&&Math.abs(t-Math.round(t/c)*c)>.001});0!==p.length&&a({path:`subspace_map.${e}.canvas_map.${t}.item_list.${d}.frame`,subspaceId:e,itemId:n(i),message:`Frame ${p.map(e=>`${e}=${l[e]}`).join(", ")} ${1===p.length?"is":"are"} not aligned to the ${c} grid step.`,hint:`Round frame values to multiples of ${c}.`})})}}},96810(e,t,a){let{forEachCanvasItem:i,frameIsNumeric:r,getItemId:n,itemHasAnimations:s}=a(27899);e.exports={code:"out-of-bounds-frame",severity:"warning",description:"An element is fully outside the subspace layout or has a non-positive size",check(e,t,a){i(e,({subspaceId:i,subspace:o,canvasId:c,item:d,index:l})=>{let p=o.layout;if("number"!=typeof p?.width||"number"!=typeof p?.height||p.width<=0||p.height<=0)return;let u=d?.frame;if(!r(u)||!0===u.exceed_boundary||u.standby_frame||s(d))return;let f=n(d);if(f&&t.dynamicRefIds.has(f))return;let b=`subspace_map.${i}.canvas_map.${c}.item_list.${l}.frame`;if(u.width<=0||u.height<=0)return void a({path:b,subspaceId:i,itemId:f,message:`Frame has a non-positive size (width=${u.width}, height=${u.height}) — the element renders nothing.`,hint:"Give the element a positive size, or remove it if unused."});let h=i===e.root_subspace_id,m=u.x>=p.width||u.x+u.width<=0,y=u.y>=p.height||u.y+u.height<=0;(m||!h&&y)&&a({path:b,subspaceId:i,itemId:f,message:`Frame (x=${u.x}, y=${u.y}, width=${u.width}, height=${u.height}) is fully outside the ${p.width}\xd7${p.height} layout — nothing is visible.`,hint:"Move the element back into the layout, or set `exceed_boundary` if the placement is intentional."})})}}},84223(e,t,a){let{FRAME_KEYS:i,forEachCanvas:r,frameIsNumeric:n,framesAlmostEqual:s,framesIntersect:o,itemHasAnimations:c}=a(27899),d=new Set(["BRICK_TEXT","BRICK_RICH_TEXT"]),l=["linearGradientEnabled","blurEnabled"],p=e=>Object.values(e?.event_map||{}).some(e=>Array.isArray(e)&&e.length>0),u=/^backgroundColor$|^border/,f=(e,t)=>{if(e?.type!=="brick")return null;let a=t[e.brick_id];return d.has(a?.template_key)?a:null},b=e=>i.map(t=>Math.floor(e[t]/.01)),h=e=>e.join(":"),m=(e,t,a,i)=>{if(!n(t?.frame)||!f(t,a))return;let r=h(b(t.frame)),s=(e.get(r)||0)+i;s>0?e.set(r,s):e.delete(r)};e.exports={code:"redundant-rect-overlay",severity:"info",description:"A plain Rect behind a same-frame Text/RichText can be folded into the text brick",check(e,t,a){r(e,({subspaceId:e,subspace:i,canvasId:r,items:d})=>{let y,E=i.brick_map||{},_=(y=new Map,d.forEach(e=>m(y,e,E,1)),y);d.forEach((i,y)=>{if(m(_,i,E,-1),i?.type!=="brick"||!n(i.frame))return;let g=E[i.brick_id];if(g?.template_key!=="BRICK_RECT"||c(i)||t.dynamicRefIds.has(i.brick_id))return;let v={...g.property,...i.property};if(l.some(e=>v[e])||!((e,t)=>{let[a,i,r,n]=b(t);for(let t=-1;t<=1;t+=1)for(let s=-1;s<=1;s+=1)for(let o=-1;o<=1;o+=1)for(let c=-1;c<=1;c+=1)if(e.has(h([a+t,i+s,r+o,n+c])))return!0;return!1})(_,i.frame))return;let S=p(g);for(let t=y+1;t<d.length;t+=1){let c=d[t];if(!n(c?.frame))continue;let l=f(c,E);if(l&&s(i.frame,c.frame,.01)){let t={...l.property,...c.property};if(Object.keys(t).some(e=>u.test(e)&&void 0!==t[e])||S&&p(l))return;a({path:`subspace_map.${e}.canvas_map.${r}.item_list.${y}`,subspaceId:e,itemId:i.brick_id,message:`Rect \`${g.title||i.brick_id}\` has the same frame as the ${l.template_key} above it and only uses base styles`+(S?", behind its press handler.":"."),hint:S?"Make the Text brick pressable, move backgroundColor / border / radius and the press handler onto it, then remove the Rect.":"Set backgroundColor / border / radius directly on the text brick and remove the Rect."});return}if(o(i.frame,c.frame))return}})})}}},31172(e,t,a){let{autoGeneratedItemIdKind:i}=a(99470),{forEachSubspace:r}=a(27899),n="PROPERTY_BANK_",s=()=>({children:Object.create(null),ids:null}),o=(e,t)=>{let a=e;for(let e of t)a.children[e]||(a.children[e]=s()),a=a.children[e];a.ids||(a.ids=[]),a.ids.push(t)},c=(e,t,a,i)=>{let r=a.children[e[i]];if(r){r.ids&&r.ids.forEach(e=>{t.set(e,t.get(e)+1)});for(let a=i+1;a<e.length&&(r=r.children[e[a]]);a+=1)r.ids&&r.ids.forEach(e=>{t.set(e,t.get(e)+1)})}};e.exports={code:"unused-data-node",severity:"info",description:"A data node is defined but never referenced anywhere in the config",check(e,t,a){let d=JSON.stringify(e),l=[];r(e,(a,r)=>{("module"!==t.configType||a!==e.root_subspace_id)&&Object.entries(r.property_bank_map||{}).forEach(([e,t])=>{!(!t||"object"!=typeof t||t.kind===i||t.enable_remote_update||t.global_remote_update_prop||t.linkedFrom||t.alias||t.preload||r.routing?.[e]?.enabled_routing)&&(Object.values(t?.event_map||{}).some(e=>Array.isArray(e)&&e.length>0)||l.push({subspaceId:a,nodeId:e,node:t}))})});let p=((e,t)=>{let a=[...new Set(t)];if(0===a.length)return new Map;let i=new Map(a.map(e=>[e,0])),r=s(),d=s(),l=!1,p=!1;if(a.forEach(e=>{e.startsWith(n)?(o(r,e),l=!0):(o(d,e),p=!0)}),l){let t=e.indexOf(n);for(;-1!==t;)c(e,i,r,t),t=e.indexOf(n,t+1)}if(p)for(let t=0;t<e.length;t+=1)c(e,i,d,t);return i})(d,l.map(({nodeId:e})=>e));l.forEach(({subspaceId:e,nodeId:t,node:i})=>{(p.get(t)||0)>1||a({path:`subspace_map.${e}.property_bank_map.${t}`,subspaceId:e,itemId:t,message:`Data node \`${i.title||t}\` is never referenced in the config.`,hint:"Remove it, or keep it if external tooling depends on it."})})}}},60760(e,t,a){let{forEachEventEntry:i}=a(27899),r=new Set(["MESSAGE","ALERT","POPUP_RESET","TAKE_SCREENSHOT","THROW_EXCEPTION","RESTART_FOUNDATION","DYNAMIC_BRICK","DYNAMIC_BRICK_RESET","DYNAMIC_ANIMATION","DYNAMIC_ANIMATION_RESET","DYNAMIC_ANIMATION_STOP","CHANNEL_SUBSCRIBE","CHANNEL_UNSUBSCRIBE","CHANNEL_PUBLISH","DISMISS_KEYBOARD","STORAGE_SET","STORAGE_DELETE","DELAY","USE_SHARE_APPLICATION","AUTH_IN_DEVICE","REFRESH_BINDCODE","STOP_APPLICATION_FILTER"]);e.exports={code:"wait-async-no-op",severity:"info",description:"wait_async is set on an action that ignores it",check(e,t,a){i(e,({subspaceId:e,path:t,entry:i,index:n})=>{i?.handler!=="SYSTEM"||!0!==i.wait_async||r.has(i.action)&&a({path:`${t}.${n}`,subspaceId:e,itemId:null,message:"DELAY"===i.action?"DELAY always waits for its timeout — `wait_async: true` is redundant.":`\`wait_async: true\` has no effect on ${i.action}; the action does not block the chain.`,hint:"DELAY"===i.action?"Remove the redundant flag.":"Remove the flag, or restructure if you relied on it for sequencing."})})}}},59707(e,t,a){let{forEachCanvas:i,frameIsNumeric:r,frameContains:n,itemHasAnimations:s}=a(27899);e.exports={code:"z-order-cover",severity:"info",description:"A later opaque element fully covers an earlier pressable element",check(e,t,a){i(e,({subspaceId:e,subspace:i,canvasId:o,items:c})=>{let d=i.brick_map||{},l=[];if(c.forEach((e,t)=>{if(e?.type!=="brick"||!r(e.frame))return;let a=d[e.brick_id];a&&Object.entries(a?.event_map||{}).some(([e,t])=>e.includes("_ON_PRESS")&&Array.isArray(t)&&t.length>0)&&l.push({item:e,index:t,brick:a})}),0===l.length)return;let p=t.dynamicRefIds,u=c.map((e,t)=>((e,t,a,i)=>{let n;if(e?.type!=="brick"||!r(e.frame)||s(e)||i.has(e.brick_id))return null;let o=a[e.brick_id],c={...o?.property,...e.property};return"string"==typeof(n=c.backgroundColor)&&(/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*1(?:\.0+)?\s*\)$/.test(n)||/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(n)||/^#[0-9a-fA-F]{6}$/.test(n))&&(void 0===c.opacity||1===c.opacity)?{index:t,item:e,brick:o,frame:e.frame}:null})(e,t,d,p)).filter(Boolean),f=(e=>{let t=Array(e.length),a=1/0,i=1/0,r=-1/0,n=-1/0,s=-1/0,o=-1/0;for(let c=e.length-1;c>=0;c-=1){let{frame:d}=e[c];a=Math.min(a,d.x),i=Math.min(i,d.y),r=Math.max(r,d.x+d.width),n=Math.max(n,d.y+d.height),s=Math.max(s,d.width),o=Math.max(o,d.height),t[c]={minX:a,minY:i,maxRight:r,maxBottom:n,maxWidth:s,maxHeight:o}}return t})(u),b=0;l.forEach(({item:t,index:i,brick:r})=>{let c,d;if(!(s(t)||p.has(t.brick_id))){for(;b<u.length&&u[b].index<=i;)b+=1;if(c=f[b],d=t.frame,c&&c.minX<=d.x+.01&&c.minY<=d.y+.01&&c.maxRight>=d.x+d.width-.01&&c.maxBottom>=d.y+d.height-.01&&c.maxWidth>=d.width-.02&&c.maxHeight>=d.height-.02)for(let s=b;s<u.length;s+=1){let c=u[s];if(n(c.frame,t.frame))return void a({path:`subspace_map.${e}.canvas_map.${o}.item_list.${i}`,subspaceId:e,itemId:t.brick_id,message:`Pressable \`${r.title||t.brick_id}\` is fully covered by the opaque \`${c.brick?.title||c.item.brick_id}\` later in the item list — it is invisible and untappable.`,hint:"Reorder the items, shrink the covering element, or remove the hidden one."})}}})})}}},30302(e,t){t.templateSupportInnerRefs=[{key:"BRICK_ITEMS",dataKey:"items",listProps:["brickList","brickDetails"]}]}};
|
|
1
|
+
export const __rspack_esm_id=7511;export const __rspack_esm_ids=[7511];export const __webpack_modules__={66422(e,t){let a=e=>`PROPERTY_BANK_DATA_NODE_${e}`,i={isLocalSyncMainDevice:{id:a("325068e3-89b6-4c6a-942b-126d38c84a62"),title:"SYSTEM: Is Local Sync Main Device",description:"The current device is main for local sync",type:"bool",value:!0},currentCanvasId:{id:a("2dfeb635-deb4-481a-9d17-ea7b1fe19f74"),title:"SYSTEM: Current Canvas ID",description:"ID for known current canvas",type:"string",value:""},previousCanvasId:{id:a("2971e463-0b0e-45b7-bbfb-a01d8fd49db3"),title:"SYSTEM: Previous Canvas ID",description:"ID for known previous canvas",type:"string",value:""},canvasIdHistory:{id:a("1a086f39-817d-40ed-92f0-5a999535d3dd"),title:"SYSTEM: Change Canvas History",description:"Change Canvas ID History (Limit: 10)",type:"array",schema:{type:"string",allowNewItem:!1,allowCustomProperty:!1},value:[]},rootSubspaceInfo:{id:a("c0817f4a-1ff3-40ed-9cbf-71d8cefd2cd9"),title:"SYSTEM: Root Subspace Info",description:"Root Subspace Information",type:"object",value:{}},subspaceInfo:{id:a("2657ec09-7323-46c3-a96e-3d8b5a0f79b3"),title:"SYSTEM: Current Subspace Info",description:"Current Subspace Information",type:"object",value:{}},uniqueID:{id:a("6f4a543f-a88a-4a83-bf53-223259263be3"),title:"SYSTEM: Unique ID",description:"Unique ID of current device",type:"string",value:"unknown"},appVersion:{id:a("d614a258-2a45-4f91-9f6b-3936038cb2b1"),title:"SYSTEM: App Version",description:"App Version of current installed BRICKS Foundation app",type:"string",value:"unknown"},lastUpdateTime:{id:a("956f3b3e-cb0b-47ca-8119-65663910d110"),title:"SYSTEM: Last Update Time",description:"Last update time of current installed BRICKS Foundation app",type:"string",value:"2019-07-09T03:32:27.058Z"},deviceName:{id:a("7b9d9ad4-e9a2-47cd-91d3-b64187895c16"),title:"SYSTEM: Device Name",description:"Name of current device",type:"string",value:"Default Device Name"},deviceType:{id:a("b0beae12-e45e-4870-ae15-858eeac566fa"),title:"SYSTEM: Device Type",description:"Type of current device (Handset, Tv, Tablet)",type:"string",value:"Tv"},operationMode:{id:a("2e715d3b-92bf-4761-b5c0-ca21f7c1ada8"),title:"SYSTEM: Operation Mode",description:"Operation Mode of current device (android, ios, ...)",type:"string",value:"android"},operationVersion:{id:a("fa886963-0a16-4b5f-b4ea-6c25b049db03"),title:"SYSTEM: Operation Version",description:"Operation Version of current device",type:"string",value:""},screenWidth:{id:a("2942470a-c3bc-413e-8f2c-30a89aded3f8"),title:"SYSTEM: Screen Width",description:"Width of current device main screen",type:"number",value:1280},screenHeight:{id:a("4f031e27-f67b-40e0-a317-9f6c5215d97d"),title:"SYSTEM: Screen Height",description:"Height of current device main screen",type:"number",value:768},screenScale:{id:a("c3c9b7aa-1dc1-4be1-8a4a-d9e299b9eeaa"),title:"SYSTEM: Screen Scale",description:"Scale of current device main screen",type:"number",value:2},screenFontScale:{id:a("0312f380-d525-4938-82d2-5b35ef8ef1e8"),title:"SYSTEM: Screen Font Scale",description:"Font scale of current device main screen",type:"number",value:1},orientation:{id:a("4f584f51-a250-4f97-a2f8-d5e6a3affb4f"),title:"SYSTEM: Orientation",description:"Orientation of current device main screen",type:"string",value:"landspace"},touchAvailable:{id:a("1fe7555f-df41-43ce-a268-3ea1b5efda6d"),title:"SYSTEM: Touch Available",description:"Is touch available of current device main screen?",type:"bool",value:!0},soundAvailable:{id:a("bf839498-f7d6-4212-ac3a-b409e3ad77a5"),title:"SYSTEM: Sound Available",description:"Is sound available of current device?",type:"bool",value:!0},cameraAvailable:{id:a("4878f3c2-8bb8-4c94-855c-06bda5a287d5"),title:"SYSTEM: Camera Available",description:"Is camera available of current device?",type:"bool",value:!0},audioInputAvailable:{id:a("4854b259-96c1-40d7-b17b-47156b4698dc"),title:"SYSTEM: Audio Input Available",description:"Is audio input available of current device?",type:"bool",value:!1},networkType:{id:a("1cbb1756-e53c-45a9-be23-5d84a214e144"),title:"SYSTEM: Network Type",description:"Network Type of current device",type:"string",value:"wifi"},networkConnected:{id:a("687b62fe-ead5-417a-b415-9bd5233784a4"),title:"SYSTEM: Network Connected",description:"Is Network connected of current device?",type:"bool",value:!0},networkIpAddress:{id:a("41971ba7-8294-4aa6-a425-ecd39853c3e6"),title:"SYSTEM: Network IP Address",description:"Current network IP address",type:"string",value:""},networkDetails:{id:a("9351fbfc-4ace-477a-b05d-41ac9b05087d"),title:"SYSTEM: Network Details",description:"Network details, provide different data depends on Network Type",type:"object",value:null},isInternetReachable:{id:a("e367ae7e-46ec-46d0-b87d-51e544591ff9"),title:"SYSTEM: Internet Reachable",description:"Is Internet reachable?",type:"bool",value:!0},isWifiEnabled:{id:a("be395305-fb85-4d05-8506-22a4ae8c7b9e"),title:"SYSTEM: Wifi Enabled",description:"Is WiFi enabled?",type:"bool",value:!0},deviceDisplayName:{id:a("76356a9a-fc46-11ec-9905-db53d6811cb7"),title:"SYSTEM: Device Display Name",description:"Current device display name",type:"string",value:""},workspaceName:{id:a("d857125e-0401-40f1-b768-56190aa8e147"),title:"SYSTEM: Workspace Name",description:"Current workspace name",type:"string",value:""},applicationInfo:{id:a("935d3322-84aa-4465-b1e7-241d1f024267"),title:"SYSTEM: Application Info",description:"Current application info",type:"object",value:{}},applicationName:{id:a("df395fd6-a754-4b60-8bac-1360933e6707"),title:"SYSTEM: Application Name",description:"Current application name",type:"string",value:""},deviceID:{id:a("8b5c2d9e-f0a1-4b2c-8d3e-4f5a6b7c8d9e"),title:"SYSTEM: Device ID",description:"Device ID of current device",type:"string",value:"unknown"},macAddress:{id:a("f01fcc78-0723-11ed-ac00-877339de1030"),title:"SYSTEM: MAC Address",description:"Network adapter MAC address of current device",type:"string",value:""},bindDeviceCode:{id:a("1ca90262-3584-11ed-8c9a-174949844872"),title:"SYSTEM: Bind Device Code",description:"The passcode to bind the device",type:"string",value:"",hide:!0},bindDeviceCodeExpire:{id:a("5b52d204-3584-11ed-bb5e-abb4d270daf1"),title:"SYSTEM: Bind Device Code Expire Time",description:"The expire time of bind passcode",type:"string",value:"",hide:!0},bindDeviceUrl:{id:a("833a7db2-3584-11ed-88dd-3b3d3ff58855"),title:"SYSTEM: Bind Device URL",description:"The URL to bind the device",type:"string",value:"",hide:!0},bindDeviceUseApplication:{id:a("631bbce8-9c90-4590-b8ec-8b27f4a0e50b"),title:"SYSTEM: Selected Application on Bind Device",description:"Current selected use application info on Bind Device",type:"object",value:null,hide:!0},isApplicationPreview:{id:a("c673967a-3996-11ed-96d9-efbc3f7eac53"),title:"SYSTEM: Is Preview Mode",description:"Is current in preview mode?",type:"bool",value:"",hide:!0},isSupportAuthInDevice:{id:a("beb2a666-3e18-11ed-bdab-6f0cb082fa67"),title:"SYSTEM: Is Support Auth In Device",description:"Is current device support auth in device?",type:"bool",value:"",hide:!0},env:{id:a("74e7a574-1099-4fe5-b193-8a9ea7d20ed0"),title:"SYSTEM: Environment Variables",description:"Environment Variables of the device",type:"object",value:{}},isViewDebugModeEnabled:{id:a("3f61c4f6-1e02-492e-8e4c-a8dc4a5bc101"),title:"SYSTEM: Is View Debug mode Enabled",description:"Is View Debug mode enabled?",type:"bool",value:!1},language:{id:a("f0ed0a03-6195-459f-9ffe-bca61923f94e"),title:"SYSTEM: Language",description:"Language of the device",type:"string",value:""},aiFilters:{id:a("3ffc1e98-8f65-4cc8-a949-3da8d2092ccb"),title:"SYSTEM: AI Filters",description:"AI filters configuration from the application",type:"array",value:[]},systemOpenAIApiKey:{id:a("a1b2c3d4-5e6f-7890-abcd-ef1234567890"),title:"SYSTEM: OpenAI API Key",description:"System OpenAI API Key (only available if application enabled)",type:"string",value:""},systemAnthropicApiKey:{id:a("b2c3d4e5-6f78-9012-bcde-f23456789012"),title:"SYSTEM: Anthropic API Key",description:"System Anthropic API Key (only available if application enabled)",type:"string",value:""},systemGeminiApiKey:{id:a("c3d4e5f6-7890-1234-cdef-345678901234"),title:"SYSTEM: Gemini API Key",description:"System Gemini API Key (only available if application enabled)",type:"string",value:""},ggmlBackendDevices:{id:a("9e8f7a6b-5c4d-3e2f-1a0b-9c8d7e6f5a4b"),title:"SYSTEM: GGML Backend Devices",description:"Available GGML backend devices with supported generators",type:"array",schema:{type:"object",allowNewItem:!1,allowCustomProperty:!1},value:[]}};t.idMap=Object.entries(i).reduce((e,[t,a])=>(e[t]=a.id,e),{}),Object.fromEntries(Object.entries(t.idMap).map(([e,t])=>[t,e])),t.MI=Object.entries(i).reduce((e,[t,a])=>{let{id:i,...r}=a;return e[t]=r,e},{}),Object.keys(t.MI)},18501(e,t,a){let{docs:i}=a(5867);t.isCommand=e=>!!(e&&e.type&&e.type.startsWith("command-node-")),t.isScriptCommand=e=>!!e&&"command-node-script"===e.type,t.getPorts=e=>e?Array.isArray(e)?e:[e]:[];let r=e=>i[e.type.replace("command-node-","")]?.commands?.[e.properties?.command];t.getCommandDoc=r,t.getCommandCallbackFromPort=(e,a)=>{let i=e[a];if(!t.isCommand(i))return null;let n=r(i);return n?.iterateeFrom||n?.invocationFrom||null};let n=e=>t.getPorts(e).some(e=>e?.disable_trigger_command);t.checkDisableTriggerCommand=(e,t)=>n(e[t.id]?.in?.[t.port]),t.findCircularReferenceIds=e=>{let a,i,r=(a=new Map,i=new Map,Object.keys(e).reduce((r,s)=>{let o=[];return Object.values(e[s]?.out||{}).forEach(r=>{t.getPorts(r).forEach(r=>{((e,a,i,r)=>{var s;if(!a||!e[a.id]||a.port===(s=a.id,i.has(s)||i.set(s,t.getCommandCallbackFromPort(e,s)),i.get(s)))return!1;let o=e[a.id]?.in?.[a.port];return!Array.isArray(o)||o.length<2?!n(o):(r.has(o)||r.set(o,n(o)),!r.get(o))})(e,r,a,i)&&o.push(r.id)})}),r[s]=o,r},{})),s=new Map;return Object.keys(e).filter(t=>e[t]?.type==="data-node").filter(e=>((e,t,a)=>{if(a.has(e))return a.get(e);let i=[{id:e,edgeIndex:0,reachesCycle:!1}],r=new Set([e]);for(;i.length>0;){let e=i[i.length-1],n=t[e.id]||[];if(e.reachesCycle||e.edgeIndex>=n.length){r.delete(e.id),a.set(e.id,e.reachesCycle),i.pop(),e.reachesCycle&&i.length>0&&(i[i.length-1].reachesCycle=!0);continue}let s=n[e.edgeIndex];if(e.edgeIndex+=1,a.has(s)){a.get(s)&&(e.reachesCycle=!0);continue}if(r.has(s)){e.reachesCycle=!0;continue}r.add(s),i.push({id:s,edgeIndex:0,reachesCycle:!1})}return a.get(e)||!1})(e,r,s))},t.hasCircularReference=e=>t.findCircularReferenceIds(e).length>0;let s=(e={})=>Object.entries(e).reduce((e,[t,a])=>(e[t]=Array.isArray(a)?a.slice():a,e),{}),o=new WeakSet,c=(e,t,a)=>{if(!a)return;let i=((e,t)=>{let a=e[t];if(!a)return e[t]=[],e[t];if(!Array.isArray(a))return e[t]=[a],e[t];if(!o.has(a)){let e=0;for(let t of a)t&&(a[e]=t,e+=1);a.length=e,o.add(a)}return a})(e,t);(Array.isArray(a)?a:[a]).forEach(e=>{e&&i.push(e)})};t.getCalcMap=e=>e?.script_map||e?.scriptMap||e?.map||{},t.composeMap=e=>Object.values(e).reduce((e,a)=>Object.entries(t.getCalcMap(a)).reduce((e,[a,i])=>{if(e[a]){if(t.isCommand(i))throw Error(`Doesn't allow same command id in another map, ${a}`);let r=e[a];Object.keys(i?.in||{}).forEach(e=>{c(r.in,e,i.in[e])}),Object.keys(i?.out||{}).forEach(e=>{c(r.out,e,i.out[e])})}else e[a]={...i,in:s(i?.in),out:s(i?.out)};return e},e),{})},86343(e,t,a){let{v4:i}=a(45620),r=a(95479),n=a(56005),{nameMap:s,brickMapping:o,generatorMapping:c}=a(63981);t.idByItem=(e={})=>e.canvas_id||e.subspace_id||e.brick_id||e.generator_id||e.property_bank_id||e.property_bank_calc_id||e.bank_id||e.scene_id,t.getAnimationType=e=>e.type||e.compose_type||e.composeType,t.cleanUpAnimationMap=e=>Object.entries(e).reduce((e,[t,a])=>((a.type||a.compose_type)&&(e[t]=a),e),{}),t.matchItemByItem=(e,t)=>{let a;if(!e)return!1;switch("string"==typeof t&&(a=t),e.type){case"brick":return e.brick_id===(a||t.brick_id);case"subspace":return e.subspace_id===(a||t.subspace_id);case"canvas":return e.canvas_id===(a||t.canvas_id);case"generator":return e.generator_id===(a||t.generator_id);case"property_bank":return e.property_bank_id===(a||t.property_bank_id);default:return!1}},t.makePasscode=()=>i(),t.kindOneOfTypes={string:["color","datetime","id","graphql","rich-text-content","sandbox-script","llm-prompt","media-resource-image","media-resource-video","media-resource-audio","media-resource-file","lottie-file-uri","rive-file-uri","ggml-model-asset","gguf-model-asset","mlx-model-asset","binary-asset","scene3d-objects"],number:["unit"],object:["tts-speaker-config"],"array-object":["llm-tools","llm-messages","mcp-server-resources","mcp-server-tools","mcp-server-prompts"]},t.getKindOneOfTypes=(e,a)=>"array"===e?"object"===a?t.kindOneOfTypes[`${e}-${a}`]:void 0:t.kindOneOfTypes[e],t.unitOneOfTypes=["grid","px","ms"],t.idOneOfTypes=["canvas","brick","generator","animation","property_bank"],t.typeToName={brick:"Brick",generator:"Generator",subspace:"Subspace",canvas:"Canvas",animation:"Animation",property_bank:"Data",property_bank_calc:"Calculation"},t.getBrickName=(e,a,i)=>{let n;if(!a)return e.toUpperCase();if(a.title)return a.title;switch(e){case"bank":n="BANK";break;case"subspace":n="SUBSPACE";break;case"canvas":n="CANVAS";break;case"animation":n=`<${r(t.getAnimationType(a))}>`;break;case"property_bank":n="<Data>";break;case"property_bank_calc":n="<Map>";break;case"state_group":n="<Switch Case>";break;default:n=`<${s[a.template_key||a.templateKey]||"Unknown"}>`}return i&&i.length>10?n+=` (${i.replace(/[A-Z_]+/g,"").substr(0,6)}...)`:i&&(n+=` (${i})`),n},t.getEventLabel=(e,{templateKey:t,itemType:a}={})=>{if(!e)return"";let i=e;return"subspace"===a?i=e.replace("SUBSPACE_ACTION_",""):t&&(i=e.replace(`${t}_`,"").replace("CANVAS_","")),r(n(r(i)))},t.getCallInternalActions=e=>{let t=o[e]||c[e];if(t)return t.callInternalActions},t.mapToList=(e,a)=>Object.entries(a).reduce((a,[i,r])=>(a.push({id:i,...r,title:t.getBrickName(e,r,i)}),a),[]);let l={subspaceMap:"subspace",brickMap:"brick",generatorMap:"generator",propertyBankMap:"property_bank",propertyAvailableToAdd:"property_bank",canvasMap:"canvas",animationMap:"animation"},d={};t.mapToListForDerivedState=(e,a,i,r)=>{let n=i[e]||d;return n!==r[e]?{[e]:n,[a]:t.mapToList(l[e],n)}:{}},t.arrayTypePrefix="array of ",t.propertyBankTypes=["string","number","bool","object","any",`${t.arrayTypePrefix}string`,`${t.arrayTypePrefix}number`,`${t.arrayTypePrefix}bool`,`${t.arrayTypePrefix}object`],t.animationRunTypes=["once","loop"],t.stopPropagationOnKeyBackspace=e=>{8===e.keyCode&&e.stopPropagation()},t.nestedTypes=["object","array","any"],t.isPropertyBankTypeNested=e=>t.nestedTypes.includes(e),t.propertyTypeToSchema=e=>{let a=e.indexOf(t.arrayTypePrefix)>-1,i=e.replace(t.arrayTypePrefix,"");return{type:i,properties:"object"===i?{}:void 0,allowNewItem:a,allowCustomProperty:"object"===i}}},33770(e,t,a){let{idMap:i}=a(66422),{forEachEventAction:r,getActionParam:n}=a(78078),s="PROPERTY_BANK_DATA_NODE_",o=new Set(Object.values(i||{}).filter(e=>"string"==typeof e&&e.startsWith(s)));e.exports=function(e){let t,a,i=[],c=(t=new Set(o),Object.values(e.subspace_map||{}).forEach(e=>{e&&"object"==typeof e&&Object.keys(e.property_bank_map||{}).forEach(e=>t.add(e))}),t),l=(a=new Set,Object.values(e.subspace_map||{}).forEach(e=>{e&&"object"==typeof e&&Object.keys(e.canvas_map||{}).forEach(e=>a.add(e))}),a);return r(e,(e,t)=>{if("PROPERTY_BANK_EXPRESSION"===e.action){let a;Array.isArray(a=n(e,"VARIABLES"))&&a.forEach((e,a)=>{let r=e?.id;if("string"!=typeof r||!r.startsWith(s)||c.has(r))return;let n=e.key?`\`${e.key}\``:`at index ${a}`;i.push({field:`${t}.VARIABLES[${a}].id`,message:`PROPERTY_BANK_EXPRESSION variable ${n} references data node \`${r}\`, which is not defined in any subspace.`})})}else"CHANGE_CANVAS"===e.action&&((e,t,a,i)=>{if("SYSTEM"!==e.handler)return;let r=n(e,"CANVAS_ID");"string"!=typeof r||!r||r.startsWith("PROPERTY_BANK#")||r.startsWith("VARIABLE#")||!r.startsWith("CANVAS_")||a.has(r)||i.push({field:`${t}.CANVAS_ID`,message:`CHANGE_CANVAS references canvas \`${r}\`, which is not defined in any subspace.`})})(e,t,l,i)}),i}},37517(e,t,a){let{composeMap:i,findCircularReferenceIds:r}=a(18501);e.exports=function(e){let t=[];return Object.entries(e.subspace_map||{}).forEach(([e,a])=>{if(!a||"object"!=typeof a||a.module?.link)return;let n=a.property_bank_calc_map;if(!n||0===Object.keys(n).length)return;let s=`subspace_map.${e}.property_bank_calc_map`;try{let e=i(n),a=r(e);if(a.length>0){let i=a.slice(0,5).map(t=>e[t].title||t),r=a.length>5?` and ${a.length-5} more`:"";t.push({field:s,message:`Circular reference detected in data calculation. Affected nodes: ${i.join(", ")}${r}. Please check the data connections for loops.`})}}catch(e){t.push({field:s,message:e.message})}}),t}},41900(e){let t=e=>{if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some(t);if("FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type)return!1;if("AssignmentExpression"===e.type&&e.left?.type!=="Identifier"||"UpdateExpression"===e.type&&e.argument?.type!=="Identifier")return!0;for(let a of Object.keys(e))if("type"!==a&&t(e[a]))return!0;return!1};e.exports={expressionFoldAcornOptions:{ecmaVersion:2022,allowReturnOutsideFunction:!0,allowAwaitOutsideFunction:!0},getUnfoldableStatementDescription:(e,a=null)=>{for(let a=0;a<e.length;a+=1){let i=e[a];if(t(i))return"a write to a member or computed target";if("ExpressionStatement"!==i.type){if("VariableDeclaration"===i.type){if(i.declarations.some(e=>"Identifier"!==e.id.type||!e.init))return"a variable declaration with destructuring or no initializer";continue}if(a!==e.length-1||"ReturnStatement"!==i.type)return`an unsupported ${i.type}`}}return a},writesToNonIdentifierTarget:t}},78078(e,t,a){let{parse:i}=a(89236),{expressionFoldAcornOptions:r}=a(41900),n=(e,t)=>{let a=e.parameter_list||e.parameterList||[];if(!Array.isArray(a))return;let i=a.find(e=>(e?.input_to_receiver||e?.inputToReceiver)===t);return i?i.result_from_sender??i.resultFromSender:void 0},s=(e,t,a)=>{if(e&&"object"==typeof e){if(Array.isArray(e))return void e.forEach((e,i)=>s(e,`${t}[${i}]`,a));Object.entries(e).forEach(([e,i])=>{("event_map"===e||"eventMap"===e)&&i&&"object"==typeof i?Object.entries(i).forEach(([i,r])=>{Array.isArray(r)&&r.forEach((r,n)=>{r&&"object"==typeof r&&a(r,`${t}.${e}.${i}[${n}]`)})}):i&&"object"==typeof i&&s(i,`${t}.${e}`,a)})}},o=(e,t)=>{Object.entries(e.subspace_map||{}).forEach(([e,a])=>{!a||"object"!=typeof a||a.module?.link||s(a,`subspace_map.${e}`,t)})};e.exports=function(e){let t=[];return o(e,(e,a)=>{if("PROPERTY_BANK_EXPRESSION"!==e.action)return;let s=n(e,"EXPRESSION");if("string"!=typeof s||s.startsWith("PROPERTY_BANK#"))return;let o=(e=>{if(!e.trim())return"Expression is empty";try{i(e,r)}catch(e){return`Expression does not parse: ${e.message}`}return null})(s);o&&t.push({field:a,message:o})}),t},e.exports.forEachEventAction=o,e.exports.getActionParam=n},38890(e,t,a){let{getDocByTemplateKey:i}=a(63981),r=a(80211),n=a(45907),s=a(37517),o=a(78078),c=a(33770),l=a(69516),{lintConfig:d,lintRuleCodes:p}=a(9098),{getBrickName:u}=a(86343);t.lintConfig=d,t.lintRuleCodes=p;let f=(e,t,a,i)=>({id:e,name:"Used Deprecated Feature",data:`The \`${u("brick",t,e)}\` brick in \`${u("subspace",a,i)}\` have been deprecated, it may not work in the future, please consider to remove it. If you can't see the item, please enable \`Show Deprecated Features\` in setting.`});t.checkConfigDeprecatedFeatures=e=>{let t=[];return Object.entries(e.subspace_map||{}).forEach(([e,a])=>{a&&"object"==typeof a&&(Object.entries(a.brick_map||{}).forEach(([r,n])=>{(void 0!==n.property?.borderLeftWidth||void 0!==n.property?.borderRightWidth||void 0!==n.property?.borderTopWidth||void 0!==n.property?.borderBottomWidth)&&t.push({id:r,name:"Used Deprecated Feature",data:`In v2.16, we have been changed \`Border Width\` to \`Border Size\` (Unit \`px\` to \`grid\`). The \`${u("brick",n,r)}\` brick still used the border width. Please re-edit it to transfer to the new unit.`});let s=i(n.template_key);s?.brickMeta?.deprecated&&t.push(f(r,n,a,e))}),Object.entries(a.generator_map||{}).forEach(([r,n])=>{let s=i(n.template_key);s?.brickMeta?.deprecated&&t.push(f(r,n,a,e))}))}),t};let m=({instancePath:e,field:t,message:a})=>{let i=e||t;return i?`${i}: ${a}`:`${a??""}`};t.checkConfig=(e,t={})=>{let a={schema:r(e),ref:n(e,t),calc:t.checkCalc?s(e):[],expression:t.checkExpressions?o(e):[],actionRef:t.checkActionRefs?c(e):[],itemsEventMap:t.checkItemsEventMaps?l(e):[]};return a.valid=0===a.schema.length&&0===a.ref.length&&0===a.calc.length&&0===a.expression.length&&0===a.actionRef.length&&0===a.itemsEventMap.length,a.message=(e=>{let t="",a=0;for(let i of e){let e=0===a?i:`${t}
|
|
2
|
+
${i}`;if(e.length>65504){0===a&&(t=`${i.slice(0,65503)}…`,a=1);break}t=e,a+=1}let i=e.length-a;return i>0?`${t}
|
|
3
|
+
…and ${i} more`:t})(a.schema.concat(a.ref).concat(a.calc).concat(a.expression).concat(a.actionRef).concat(a.itemsEventMap).map(m)),a}},69516(e,t,a){let i=a(80211),{templateSupportInnerRefs:r}=a(30302);e.exports=function(e){let t=[],a=i.ajv.getSchema("http://display.bricks.tools/event_map_camel.schema.json5");return Object.entries(e.subspace_map||{}).forEach(([e,i])=>{!i||"object"!=typeof i||i.module?.link||Object.entries(i.brick_map||{}).forEach(([i,n])=>{let s=r.find(e=>e.key===n?.template_key);s&&n.property&&s.listProps.forEach(r=>{let s=n.property[r];Array.isArray(s)&&s.forEach((n,s)=>{if(!n||"object"!=typeof n)return;let o=`subspace_map.${e}.brick_map.${i}.property.${r}[${s}]`;"event_map"in n&&t.push({field:`${o}.event_map`,message:"items-list entries store their event map in camelCase as `eventMap`; this snake_case `event_map` key is never read by the runtime or the editor (dead data, typically left by an old Short Edit write) — remove it."}),void 0!==n.eventMap&&null!==n.eventMap&&(a(n.eventMap)||a.errors.forEach(e=>{t.push({field:`${o}.eventMap${e.instancePath.split("/").filter(Boolean).map(e=>/^\d+$/.test(e)?`[${e}]`:`.${e}`).join("")}`,message:e.message})}))})})})}),t}},27899(e){let t=["x","y","width","height"],a=e=>"string"==typeof e&&e.startsWith("PROPERTY_BANK_"),i=/PROPERTY_BANK#(PROPERTY_BANK_[A-Za-z0-9_-]+)/g,r=/(?:BRICK|ANIMATION|SUBSPACE)_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/g,n=(e,t=new Set)=>{if("string"==typeof e){let a;for(i.lastIndex=0;a=i.exec(e);)t.add(a[1])}else Array.isArray(e)?e.forEach(e=>n(e,t)):e&&"object"==typeof e&&(a(e.id)&&t.add(e.id),Object.values(e).forEach(e=>n(e,t)));return t},s=(e,t)=>{if("string"==typeof e){let a;for(r.lastIndex=0;a=r.exec(e);)t.add(a[0])}else Array.isArray(e)?e.forEach(e=>s(e,t)):e&&"object"==typeof e&&Object.values(e).forEach(e=>s(e,t));return t},o=(e,t)=>{Object.entries(e.subspace_map||{}).forEach(([e,a])=>{!a||"object"!=typeof a||a.module?.link||t(e,a)})},c=(e,t)=>{o(e,(e,a)=>{Object.entries(a.canvas_map||{}).forEach(([i,r])=>{let n=Array.isArray(r?.item_list)?r.item_list:[];t({subspaceId:e,subspace:a,canvasId:i,canvas:r,items:n})})})},l=[["brick_map","brick"],["generator_map","generator"],["property_bank_map","property_bank"],["canvas_map","canvas"]],d=(e,t,a)=>{l.forEach(([i,r])=>{Object.entries(t[i]||{}).forEach(([t,n])=>{Object.entries(n?.event_map||{}).forEach(([n,s])=>{Array.isArray(s)&&a({ownerType:r,ownerId:t,eventKey:n,list:s,path:`subspace_map.${e}.${i}.${t}.event_map.${n}`})})})})},p=(e,t)=>{o(e,(e,a)=>{d(e,a,i=>{i.list.forEach((r,n)=>{t({subspaceId:e,subspace:a,...i,entry:r,index:n})})})})},u=(e,t)=>(e.parameter_list||[]).find(e=>e?.input_to_receiver===t)?.result_from_sender;e.exports={FRAME_KEYS:t,isBankNodeId:a,collectBankReads:n,forEachSubspace:o,forEachCanvas:c,forEachCanvasItem:(e,t)=>{c(e,e=>{e.items.forEach((a,i)=>{t({...e,item:a,index:i})})})},forEachEventList:d,forEachEventEntry:p,getParamValue:u,hasParamValue:(e,t)=>{let a=u(e,t);return null!=a&&""!==a},collectDynamicallyReferencedIds:e=>{let t=new Set;return p(e,({entry:e})=>{s(e?.parameter_list,t)}),s(e.automation_map,t),s(e.test_map,t),t},frameIsNumeric:e=>!!e&&t.every(t=>"number"==typeof e[t]),framesAlmostEqual:(e,a,i=.01)=>t.every(t=>Math.abs(e[t]-a[t])<=i),frameContains:(e,t,a=.01)=>e.x<=t.x+a&&e.y<=t.y+a&&e.x+e.width>=t.x+t.width-a&&e.y+e.height>=t.y+t.height-a,framesIntersect:(e,t)=>!(e.x+e.width<=t.x||t.x+t.width<=e.x||e.y+e.height<=t.y||t.y+t.height<=e.y),getItemId:e=>e?.brick_id||e?.subspace_id||null,itemHasAnimations:e=>!!e?.animations&&Object.keys(e.animations).length>0}},9098(e,t,a){let{collectDynamicallyReferencedIds:i}=a(27899),r=[a(98632),a(84223),a(92260),a(96810),a(60760),a(40566),a(31172),a(59707),a(39425),a(78899)],n=r.map(e=>e.code),s=e=>Array.isArray(e)?e:"string"==typeof e&&e?e.split(",").map(e=>e.trim()).filter(Boolean):null;e.exports={lintConfig:(e,t={})=>{let a,o=s(t.only),c=s(t.ignore),l=[...o||[],...c||[]].filter(e=>!n.includes(e));if(l.length>0)throw Error(`Unknown lint rule code(s): ${l.join(", ")}. Valid codes: ${n.join(", ")}`);if(!e||"object"!=typeof e)return[];let d=r.filter(e=>(!o||o.includes(e.code))&&(!c||!c.includes(e.code)));if(0===d.length)return[];let p={configType:"module"===t.configType?"module":"app",gridStep:"number"==typeof t.gridStep&&t.gridStep>0?t.gridStep:.5,get dynamicRefIds(){return a||(a=i(e)),a}},u=[];return d.forEach(t=>{try{t.check(e,p,e=>u.push({severity:t.severity,code:t.code,path:"",subspaceId:null,itemId:null,hint:null,...e}))}catch(e){u.push({severity:"warning",code:t.code,path:"",subspaceId:null,itemId:null,message:`Lint rule crashed: ${e.message}`,hint:null})}}),u},lintRuleCodes:n}},98632(e,t,a){let{composeMap:i}=a(18501),{forEachSubspace:r,forEachEventList:n,collectBankReads:s,isBankNodeId:o,getParamValue:c}=a(27899),l=(e,t)=>t.map(t=>c(e,t)).filter(o),d={PROPERTY_BANK:{waitable:!0,targets:e=>(e.parameter_list||[]).map(e=>e?.input_to_receiver).filter(o)},PROPERTY_BANK_EXPRESSION:{waitable:!0,targets:e=>l(e,["RESULT","ERROR_RESULT"])},PROPERTY_BANK_COMMAND:{waitable:!0,targets:(e,t)=>((e,t)=>{let a=t();if(!a)return[];let i=[],r=new Set,n=(e.parameter_list||[]).map(e=>e?.input_to_receiver).filter(o);for(let e=0;e<n.length;e+=1){let t=n[e];if(r.has(t))continue;r.add(t);let s=a[t];s&&Object.values(s.out||{}).forEach(e=>{(e||[]).forEach(e=>{e?.id&&(e.id.includes("DATA_NODE")&&i.push(e.id),n.push(e.id))})})}return i})(e,t)},STORAGE_RETRIEVE:{waitable:!0,targets:e=>l(e,["STORAGE_RETRIEVE_RESULT"])},OPEN_FILE:{waitable:!0,targets:e=>l(e,["SAVE_PROPERTY","SAVE_DETAIL_PROPERTY","ERROR_SAVE_PROPERTY"])},SAVE_UPDATE_SNAPSHOT:{waitable:!0,targets:e=>l(e,["SNAPSHOT_SAVE_RESULT","SNAPSHOT_ERROR_RESULT"])},TRIGGER_APPLICATION_FILTER:{waitable:!0,targets:e=>l(e,["RESULT","ERROR_RESULT"])},TAKE_SCREENSHOT:{waitable:!1,targets:e=>l(e,["TAKE_SCREENSHOT_SAVE_PROPERTY"])}},p=/(^|_)RESULT$|_SAVE_PROPERTY$/;e.exports={code:"data-update-race",severity:"warning",description:"A data node is written without wait_async and read by a later action in the same event",check(e,t,a){r(e,(e,t)=>{let r,c=()=>{if(void 0===r)try{r=i(t.property_bank_calc_map||{})}catch{r=null}return r};n(e,t,({path:t,list:i})=>{let r=new Map;i.forEach((i,n)=>{if(!i||"object"!=typeof i)return;if("SYSTEM"===i.handler&&"DELAY"===i.action)return void r.clear();let l=new Set;(i.parameter_list||[]).forEach(e=>s(e?.result_from_sender,l)),l.forEach(s=>{let o=r.get(s);o&&(a({path:`${t}.${n}`,subspaceId:e,itemId:s,message:`\`${s}\` is written by action #${o.index} (${o.action}) without waiting, then read by action #${n} (${i.action}) — the read can still see the previous value.`,hint:o.waitable?`Set \`wait_async: true\` on action #${o.index} (${o.action}).`:`${o.action} ignores \`wait_async\` for its data write — insert a SYSTEM DELAY action between the two, or move the read into the data node's value-change event.`}),r.delete(s))});let u=((e,t)=>{if("SYSTEM"===e.handler){let a=d[e.action];if(!a)return null;let i=a.targets(e,t);return i.length>0?{targets:i,waitable:a.waitable}:null}let a=(e.parameter_list||[]).filter(e=>"string"==typeof e?.input_to_receiver&&p.test(e.input_to_receiver)&&o(e.result_from_sender)).map(e=>e.result_from_sender);return a.length>0?{targets:a,waitable:!0}:null})(i,c);if(!u)return;let f=!0===i.wait_async&&u.waitable;u.targets.forEach(e=>{f?r.delete(e):r.set(e,{index:n,action:i.action,waitable:u.waitable})})})})})}}},39425(e,t,a){let{forEachEventEntry:i,getParamValue:r}=a(27899),n=new Set(["Math","Date","Object","Array","Number","String","Boolean","JSON","RegExp","Intl","isNaN","isFinite","parseInt","parseFloat","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","NaN","Infinity","undefined"]);e.exports={code:"expression-global-variable",severity:"error",description:"A PROPERTY_BANK_EXPRESSION variable is named after a JS global and is silently ignored at runtime",check(e,t,a){i(e,({subspaceId:e,path:t,entry:i,index:s})=>{if(i?.handler!=="SYSTEM"||"PROPERTY_BANK_EXPRESSION"!==i.action)return;let o=r(i,"VARIABLES");Array.isArray(o)&&o.forEach(i=>{let r=i?.key;"string"==typeof r&&n.has(r)&&a({path:`${t}.${s}`,subspaceId:e,itemId:null,message:`Expression variable "${r}" is named after the JS global \`${r}\` and is silently ignored — the global takes precedence in the expression scope, so the bound value is never used.`,hint:`Rename the variable (e.g. "${r}Value") so the expression reads the bound value.`})})})}}},78899(e,t,a){let{forEachEventEntry:i}=a(27899),r=/^(?:SUBSPACE|BRICK|GENERATOR|CANVAS|DATA)_[A-Z0-9_]+$/,n=/^PROPERTY_BANK#/;e.exports={code:"mapping-outside-items",severity:"warning",description:"An event action outside BRICK_ITEMS sets result_data_mapping (ctor `mapping`) on a value the runtime will write verbatim",check(e,t,a){i(e,({subspaceId:e,subspace:t,ownerType:i,ownerId:s,path:o,entry:c,index:l})=>{let d=c?.parameter_list;if(!Array.isArray(d))return;let p=t[`${i}_map`]?.[s];("brick"!==i||p?.template_key!=="BRICK_ITEMS")&&d.forEach((t,s)=>{let c;if(t?.result_data_mapping!==!0||"string"!=typeof(c=t.result_from_sender)||r.test(c)||n.test(c))return;let d=t.input_to_receiver||"the target",u=String(t.result_from_sender),f=u.length>80?`${u.slice(0,77)}…`:u;a({path:`${o}.${l}.parameter_list.${s}`,subspaceId:e,itemId:null,message:`result_data_mapping (ctor \`mapping\`) only resolves inside BRICK_ITEMS list entries, where it names a field of the item. On ${"brick"===i?p?.template_key||"this brick":"generator"===i?p?.template_key||"this generator":"property_bank"===i?"a data node event":"canvas"===i?"a canvas event":i} the runtime writes the mapping text \`${f}\` itself into ${d}.`,hint:'Forward the event payload by its property key (`value: "BRICK_…_PROP"` / `result_from_sender: "BRICK_…_PROP"`) into a scratch data node with waitAsync, then derive the final value with PROPERTY_BANK_EXPRESSION or a data calculation.'})})})}}},40566(e,t,a){let{forEachEventEntry:i,hasParamValue:r}=a(27899),n=[{action:"STORAGE_RETRIEVE",severity:"error",isMissing:e=>!r(e,"STORAGE_RETRIEVE_RESULT"),message:"STORAGE_RETRIEVE requires a STORAGE_RETRIEVE_RESULT parameter — without it the action throws at runtime.",hint:"Add a STORAGE_RETRIEVE_RESULT parameter pointing at a data node."},{action:"TAKE_SCREENSHOT",severity:"warning",isMissing:e=>!r(e,"TAKE_SCREENSHOT_SAVE_PROPERTY"),message:"TAKE_SCREENSHOT without TAKE_SCREENSHOT_SAVE_PROPERTY is silently skipped at runtime.",hint:"Add a TAKE_SCREENSHOT_SAVE_PROPERTY parameter pointing at a data node."},{action:"OPEN_FILE",severity:"warning",isMissing:e=>!r(e,"SAVE_PROPERTY")&&!r(e,"SAVE_DETAIL_PROPERTY"),message:"OPEN_FILE has no SAVE_PROPERTY / SAVE_DETAIL_PROPERTY — the picked file is discarded.",hint:"Add SAVE_PROPERTY (file uri) or SAVE_DETAIL_PROPERTY (file detail) parameters."},{action:"OPEN_URL",severity:"warning",isMissing:e=>!r(e,"URL"),message:"OPEN_URL has no URL parameter — the action does nothing.",hint:"Add a URL parameter."}];e.exports={code:"missing-result-param",severity:"warning",description:"An action is missing the parameter that receives or drives its effect",check(e,t,a){i(e,({subspaceId:e,path:t,entry:i,index:r})=>{if(i?.handler!=="SYSTEM")return;let s=n.find(e=>e.action===i.action);s&&s.isMissing(i)&&a({path:`${t}.${r}`,subspaceId:e,itemId:null,severity:s.severity,message:s.message,hint:s.hint})})}}},92260(e,t,a){let{forEachCanvasItem:i,frameIsNumeric:r,getItemId:n,FRAME_KEYS:s}=a(27899),o=["width","height"];e.exports={code:"off-grid-frame",severity:"warning",description:"Frame values should be multiples of the 0.5 grid step",check(e,t,a){let c=t.gridStep;i(e,({subspaceId:e,canvasId:t,item:i,index:l})=>{let d=i?.frame;if(!r(d))return;let p=s.filter(e=>{let t=d[e];return(!o.includes(e)||!(t<=c))&&Math.abs(t-Math.round(t/c)*c)>.001});0!==p.length&&a({path:`subspace_map.${e}.canvas_map.${t}.item_list.${l}.frame`,subspaceId:e,itemId:n(i),message:`Frame ${p.map(e=>`${e}=${d[e]}`).join(", ")} ${1===p.length?"is":"are"} not aligned to the ${c} grid step.`,hint:`Round frame values to multiples of ${c}.`})})}}},96810(e,t,a){let{forEachCanvasItem:i,frameIsNumeric:r,getItemId:n,itemHasAnimations:s}=a(27899);e.exports={code:"out-of-bounds-frame",severity:"warning",description:"An element is fully outside the subspace layout or has a non-positive size",check(e,t,a){i(e,({subspaceId:i,subspace:o,canvasId:c,item:l,index:d})=>{let p=o.layout;if("number"!=typeof p?.width||"number"!=typeof p?.height||p.width<=0||p.height<=0)return;let u=l?.frame;if(!r(u)||!0===u.exceed_boundary||u.standby_frame||s(l))return;let f=n(l);if(f&&t.dynamicRefIds.has(f))return;let m=`subspace_map.${i}.canvas_map.${c}.item_list.${d}.frame`;if(u.width<=0||u.height<=0)return void a({path:m,subspaceId:i,itemId:f,message:`Frame has a non-positive size (width=${u.width}, height=${u.height}) — the element renders nothing.`,hint:"Give the element a positive size, or remove it if unused."});let h=i===e.root_subspace_id,b=u.x>=p.width||u.x+u.width<=0,y=u.y>=p.height||u.y+u.height<=0;(b||!h&&y)&&a({path:m,subspaceId:i,itemId:f,message:`Frame (x=${u.x}, y=${u.y}, width=${u.width}, height=${u.height}) is fully outside the ${p.width}\xd7${p.height} layout — nothing is visible.`,hint:"Move the element back into the layout, or set `exceed_boundary` if the placement is intentional."})})}}},84223(e,t,a){let{FRAME_KEYS:i,forEachCanvas:r,frameIsNumeric:n,framesAlmostEqual:s,framesIntersect:o,itemHasAnimations:c}=a(27899),l=new Set(["BRICK_TEXT","BRICK_RICH_TEXT"]),d=["linearGradientEnabled","blurEnabled"],p=e=>Object.values(e?.event_map||{}).some(e=>Array.isArray(e)&&e.length>0),u=/^backgroundColor$|^border/,f=(e,t)=>{if(e?.type!=="brick")return null;let a=t[e.brick_id];return l.has(a?.template_key)?a:null},m=e=>i.map(t=>Math.floor(e[t]/.01)),h=e=>e.join(":"),b=(e,t,a,i)=>{if(!n(t?.frame)||!f(t,a))return;let r=h(m(t.frame)),s=(e.get(r)||0)+i;s>0?e.set(r,s):e.delete(r)};e.exports={code:"redundant-rect-overlay",severity:"info",description:"A plain Rect behind a same-frame Text/RichText can be folded into the text brick",check(e,t,a){r(e,({subspaceId:e,subspace:i,canvasId:r,items:l})=>{let y,_=i.brick_map||{},E=(y=new Map,l.forEach(e=>b(y,e,_,1)),y);l.forEach((i,y)=>{if(b(E,i,_,-1),i?.type!=="brick"||!n(i.frame))return;let g=_[i.brick_id];if(g?.template_key!=="BRICK_RECT"||c(i)||t.dynamicRefIds.has(i.brick_id))return;let v={...g.property,...i.property};if(d.some(e=>v[e])||!((e,t)=>{let[a,i,r,n]=m(t);for(let t=-1;t<=1;t+=1)for(let s=-1;s<=1;s+=1)for(let o=-1;o<=1;o+=1)for(let c=-1;c<=1;c+=1)if(e.has(h([a+t,i+s,r+o,n+c])))return!0;return!1})(E,i.frame))return;let S=p(g);for(let t=y+1;t<l.length;t+=1){let c=l[t];if(!n(c?.frame))continue;let d=f(c,_);if(d&&s(i.frame,c.frame,.01)){let t={...d.property,...c.property};if(Object.keys(t).some(e=>u.test(e)&&void 0!==t[e])||S&&p(d))return;a({path:`subspace_map.${e}.canvas_map.${r}.item_list.${y}`,subspaceId:e,itemId:i.brick_id,message:`Rect \`${g.title||i.brick_id}\` has the same frame as the ${d.template_key} above it and only uses base styles`+(S?", behind its press handler.":"."),hint:S?"Make the Text brick pressable, move backgroundColor / border / radius and the press handler onto it, then remove the Rect.":"Set backgroundColor / border / radius directly on the text brick and remove the Rect."});return}if(o(i.frame,c.frame))return}})})}}},31172(e,t,a){let{autoGeneratedItemIdKind:i}=a(99470),{forEachSubspace:r}=a(27899),n="PROPERTY_BANK_",s=()=>({children:Object.create(null),ids:null}),o=(e,t)=>{let a=e;for(let e of t)a.children[e]||(a.children[e]=s()),a=a.children[e];a.ids||(a.ids=[]),a.ids.push(t)},c=(e,t,a,i)=>{let r=a.children[e[i]];if(r){r.ids&&r.ids.forEach(e=>{t.set(e,t.get(e)+1)});for(let a=i+1;a<e.length&&(r=r.children[e[a]]);a+=1)r.ids&&r.ids.forEach(e=>{t.set(e,t.get(e)+1)})}};e.exports={code:"unused-data-node",severity:"info",description:"A data node is defined but never referenced anywhere in the config",check(e,t,a){let l=JSON.stringify(e),d=[];r(e,(a,r)=>{("module"!==t.configType||a!==e.root_subspace_id)&&Object.entries(r.property_bank_map||{}).forEach(([e,t])=>{!(!t||"object"!=typeof t||t.kind===i||t.enable_remote_update||t.global_remote_update_prop||t.linkedFrom||t.alias||t.preload||r.routing?.[e]?.enabled_routing)&&(Object.values(t?.event_map||{}).some(e=>Array.isArray(e)&&e.length>0)||d.push({subspaceId:a,nodeId:e,node:t}))})});let p=((e,t)=>{let a=[...new Set(t)];if(0===a.length)return new Map;let i=new Map(a.map(e=>[e,0])),r=s(),l=s(),d=!1,p=!1;if(a.forEach(e=>{e.startsWith(n)?(o(r,e),d=!0):(o(l,e),p=!0)}),d){let t=e.indexOf(n);for(;-1!==t;)c(e,i,r,t),t=e.indexOf(n,t+1)}if(p)for(let t=0;t<e.length;t+=1)c(e,i,l,t);return i})(l,d.map(({nodeId:e})=>e));d.forEach(({subspaceId:e,nodeId:t,node:i})=>{(p.get(t)||0)>1||a({path:`subspace_map.${e}.property_bank_map.${t}`,subspaceId:e,itemId:t,message:`Data node \`${i.title||t}\` is never referenced in the config.`,hint:"Remove it, or keep it if external tooling depends on it."})})}}},60760(e,t,a){let{forEachEventEntry:i}=a(27899),r=new Set(["MESSAGE","ALERT","POPUP_RESET","TAKE_SCREENSHOT","THROW_EXCEPTION","RESTART_FOUNDATION","DYNAMIC_BRICK","DYNAMIC_BRICK_RESET","DYNAMIC_ANIMATION","DYNAMIC_ANIMATION_RESET","DYNAMIC_ANIMATION_STOP","CHANNEL_SUBSCRIBE","CHANNEL_UNSUBSCRIBE","CHANNEL_PUBLISH","DISMISS_KEYBOARD","STORAGE_SET","STORAGE_DELETE","DELAY","USE_SHARE_APPLICATION","AUTH_IN_DEVICE","REFRESH_BINDCODE","STOP_APPLICATION_FILTER"]);e.exports={code:"wait-async-no-op",severity:"info",description:"wait_async is set on an action that ignores it",check(e,t,a){i(e,({subspaceId:e,path:t,entry:i,index:n})=>{i?.handler!=="SYSTEM"||!0!==i.wait_async||r.has(i.action)&&a({path:`${t}.${n}`,subspaceId:e,itemId:null,message:"DELAY"===i.action?"DELAY always waits for its timeout — `wait_async: true` is redundant.":`\`wait_async: true\` has no effect on ${i.action}; the action does not block the chain.`,hint:"DELAY"===i.action?"Remove the redundant flag.":"Remove the flag, or restructure if you relied on it for sequencing."})})}}},59707(e,t,a){let{forEachCanvas:i,frameIsNumeric:r,frameContains:n,itemHasAnimations:s}=a(27899);e.exports={code:"z-order-cover",severity:"info",description:"A later opaque element fully covers an earlier pressable element",check(e,t,a){i(e,({subspaceId:e,subspace:i,canvasId:o,items:c})=>{let l=i.brick_map||{},d=[];if(c.forEach((e,t)=>{if(e?.type!=="brick"||!r(e.frame))return;let a=l[e.brick_id];a&&Object.entries(a?.event_map||{}).some(([e,t])=>e.includes("_ON_PRESS")&&Array.isArray(t)&&t.length>0)&&d.push({item:e,index:t,brick:a})}),0===d.length)return;let p=t.dynamicRefIds,u=c.map((e,t)=>((e,t,a,i)=>{let n;if(e?.type!=="brick"||!r(e.frame)||s(e)||i.has(e.brick_id))return null;let o=a[e.brick_id],c={...o?.property,...e.property};return"string"==typeof(n=c.backgroundColor)&&(/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*1(?:\.0+)?\s*\)$/.test(n)||/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(n)||/^#[0-9a-fA-F]{6}$/.test(n))&&(void 0===c.opacity||1===c.opacity)?{index:t,item:e,brick:o,frame:e.frame}:null})(e,t,l,p)).filter(Boolean),f=(e=>{let t=Array(e.length),a=1/0,i=1/0,r=-1/0,n=-1/0,s=-1/0,o=-1/0;for(let c=e.length-1;c>=0;c-=1){let{frame:l}=e[c];a=Math.min(a,l.x),i=Math.min(i,l.y),r=Math.max(r,l.x+l.width),n=Math.max(n,l.y+l.height),s=Math.max(s,l.width),o=Math.max(o,l.height),t[c]={minX:a,minY:i,maxRight:r,maxBottom:n,maxWidth:s,maxHeight:o}}return t})(u),m=0;d.forEach(({item:t,index:i,brick:r})=>{let c,l;if(!(s(t)||p.has(t.brick_id))){for(;m<u.length&&u[m].index<=i;)m+=1;if(c=f[m],l=t.frame,c&&c.minX<=l.x+.01&&c.minY<=l.y+.01&&c.maxRight>=l.x+l.width-.01&&c.maxBottom>=l.y+l.height-.01&&c.maxWidth>=l.width-.02&&c.maxHeight>=l.height-.02)for(let s=m;s<u.length;s+=1){let c=u[s];if(n(c.frame,t.frame))return void a({path:`subspace_map.${e}.canvas_map.${o}.item_list.${i}`,subspaceId:e,itemId:t.brick_id,message:`Pressable \`${r.title||t.brick_id}\` is fully covered by the opaque \`${c.brick?.title||c.item.brick_id}\` later in the item list — it is invisible and untappable.`,hint:"Reorder the items, shrink the covering element, or remove the hidden one."})}}})})}}},30302(e,t){t.templateSupportInnerRefs=[{key:"BRICK_ITEMS",dataKey:"items",listProps:["brickList","brickDetails"]}]}};
|
package/lib/831.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const __rspack_esm_id=831;export const __rspack_esm_ids=[831];export const __webpack_modules__={60450(e,r,i){i.r(r),i.d(r,{buildScreenshotUrl:()=>
|
|
1
|
+
export const __rspack_esm_id=831;export const __rspack_esm_ids=[831];export const __webpack_modules__={60450(e,r,i){i.r(r),i.d(r,{buildScreenshotUrl:()=>f,downloadScreenshot:()=>p,fetchAndSaveScreenshot:()=>_,getDeviceScreenshot:()=>h,getSystemMediaBoxId:()=>y,isMediaEnabled:()=>c});var n,t,o,a=i(99436),l=i(79657),s=i(73024),u=i(76760),d=i(48161),c=e=>e?.media_resource?.enable_media_workspace===!0,y=e=>c(e)&&e.media_resource?.system_media_box_id||null,h=(n=a(function*(e,r,i){var n=yield e.mediaFiles({boxId:r,userTags:[`bricks_screenshot_${i}`],limit:1});return n?.[0]||null}),function(e,r,i){return n.apply(this,arguments)}),f=(e,{preferThumbnail:r=!1}={})=>{if(!e?.meta?.storageEndpoint)return null;var i=e.meta,n=i.storageEndpoint,t=i.originalFileKey,o=(r?(e=>{var r=e?.meta;if(!r)return null;if("Video"===e.fileType&&r.videoThumbOriginalFileKey)return r.videoThumbOriginalFileKey;var i=r.imageVersions||[];if(!Array.isArray(i)||0===i.length)return null;var n=i.filter(e=>e?.strategy==="BOUNDED"&&"number"==typeof e.width).sort((e,r)=>e.width-r.width);return(n[0]||i[0])?.key||null})(e):null)||t;return o?`${n}/${o}`:null},p=(t=a(function*(e,r=null){var i,n=new AbortController;try{var t=yield(0,l.Ay)(e,{signal:n.signal});if(!t.ok)throw Error(`Failed to download screenshot: ${t.statusText}`);i=yield t.buffer()}finally{n.abort()}var o=r||u.join(d.tmpdir(),`bricks-screenshot-${Date.now()}.png`),a=u.dirname(o);return s.existsSync(a)||s.mkdirSync(a,{recursive:!0}),s.writeFileSync(o,i),o}),function(e){return t.apply(this,arguments)}),_=(o=a(function*(e,r,i,n=null,t={}){var o=y(r);if(!o)return{error:"Media workspace not enabled for this workspace"};var a=yield h(e,o,i);if(!a)return{error:"No screenshot available for this device"};var l=f(a,t);return l?{path:yield p(l,n),file:a,url:l}:{error:"Could not build screenshot URL"}}),function(e,r,i){return o.apply(this,arguments)})}};
|
package/lib/8937.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __rspack_esm_id=8937;export const __rspack_esm_ids=[8937];export const __webpack_modules__={96554(u,e,t){!function(){"use strict";function u(u){return G.Statement.hasOwnProperty(u.type)}o=t(4704),s=t(71562),n=o.Syntax;var n,r,i,o,s,a,D,l,c,p,A,C,F,h,E,f,g,m,d,B,y,S,x,v={"??":(r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22}).Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};function _(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function b(u,e){var t="";for(e|=0;e>0;e>>>=1,u+=u)1&e&&(t+=u);return t}function w(u){var e=u.length;return e&&s.code.isLineTerminator(u.charCodeAt(e-1))}function L(u,e){var t;for(t in e)e.hasOwnProperty(t)&&(u[t]=e[t]);return u}function k(u,e){var t,n;function r(u){return"object"==typeof u&&u instanceof Object&&!(u instanceof RegExp)}for(t in e)e.hasOwnProperty(t)&&(r(n=e[t])?r(u[t])?k(u[t],n):u[t]=k({},n):u[t]=n);return u}function O(u,e){return(-2&u)==8232?(e?"u":"\\u")+(8232===u?"2028":"2029"):10===u||13===u?(e?"":"\\")+(10===u?"n":"r"):String.fromCharCode(u)}function M(u,e){if(!y)if(Array.isArray(u))return function u(e){var t,n,r,i="";for(t=0,n=e.length;t<n;++t)i+=Array.isArray(r=e[t])?u(r):r;return i}(u);else return u;if(null==e)if(u instanceof i)return u;else e={};return null==e.loc?new i(null,null,y,u,e.name||null):new i(e.loc.start.line,e.loc.start.column,!0===y?e.loc.source||null:y,u,e.name||null)}function P(){return h||" "}function R(u,e){var t,n,r,i;return 0===(t=M(u).toString()).length?[e]:0===(n=M(e).toString()).length?[u]:(r=t.charCodeAt(t.length-1),i=n.charCodeAt(0),(43===r||45===r)&&r===i||s.code.isIdentifierPartES5(r)&&s.code.isIdentifierPartES5(i)||47===r&&105===i)?[u,P(),e]:s.code.isWhiteSpace(r)||s.code.isLineTerminator(r)||s.code.isWhiteSpace(i)||s.code.isLineTerminator(i)?[u,e]:[u,h,e]}function I(u){return[a,u]}function T(u){var e;e=a,u(a+=D),a=e}function q(u,e){if("Line"===u.type)if(w(u.value))return"//"+u.value;else{var t="//"+u.value;return x||(t+="\n"),t}return d.format.indent.adjustMultilineComment&&/[\n\r]/.test(u.value)?function(u,e){var t,n,r,i,o,D,l,c;for(n=1,t=u.split(/\r\n|[\r\n]/),D=Number.MAX_VALUE,r=t.length;n<r;++n){for(i=t[n],o=0;o<i.length&&s.code.isWhiteSpace(i.charCodeAt(o));)++o;D>o&&(D=o)}for(void 0!==e?(l=a,"*"===t[1][D]&&(e+=" "),a=e):(1&D&&--D,l=a),n=1,r=t.length;n<r;++n)c=M(I(t[n].slice(D))),t[n]=y?c.join(""):c;return a=l,t.join("\n")}("/*"+u.value+"*/",e):"/*"+u.value+"*/"}function N(u,e){var t,r,i,o,l,c,p,A,C,F,h,E;if(u.leadingComments&&u.leadingComments.length>0){if(o=e,x){for(i=u.leadingComments[0],e=[],A=i.extendedRange,C=i.range,(E=((h=S.substring(A[0],C[0])).match(/\n/g)||[]).length)>0?(e.push(b("\n",E)),e.push(I(q(i)))):(e.push(h),e.push(q(i))),F=C,t=1,r=u.leadingComments.length;t<r;t++)C=(i=u.leadingComments[t]).range,E=(S.substring(F[1],C[0]).match(/\n/g)||[]).length,e.push(b("\n",E)),e.push(I(q(i))),F=C;E=(S.substring(C[1],A[1]).match(/\n/g)||[]).length,e.push(b("\n",E))}else for(i=u.leadingComments[0],e=[],g&&u.type===n.Program&&0===u.body.length&&e.push("\n"),e.push(q(i)),w(M(e).toString())||e.push("\n"),t=1,r=u.leadingComments.length;t<r;++t)w(M(p=[q(i=u.leadingComments[t])]).toString())||p.push("\n"),e.push(I(p));e.push(I(o))}if(u.trailingComments)if(x)A=(i=u.trailingComments[0]).extendedRange,C=i.range,(E=((h=S.substring(A[0],C[0])).match(/\n/g)||[]).length)>0?(e.push(b("\n",E)),e.push(I(q(i)))):(e.push(h),e.push(q(i)));else for(t=0,l=!w(M(e).toString()),c=b(" ",function(u){var e;for(e=u.length-1;e>=0&&!s.code.isLineTerminator(u.charCodeAt(e));--e);return u.length-1-e}(M([a,e,D]).toString())),r=u.trailingComments.length;t<r;++t)i=u.trailingComments[t],l?(e=0===t?[e,D]:[e,c]).push(q(i,c)):e=[e,I(q(i))],t===r-1||w(M(e).toString())||(e=[e,"\n"]);return e}function j(u,e,t){var n,r=0;for(n=u;n<e;n++)"\n"===S[n]&&r++;for(n=1;n<r;n++)t.push(F)}function U(u,e,t){return e<t?["(",u,")"]:u}function W(u){var e,t,n;for(e=1,t=(n=u.split(/\r\n|\n/)).length;e<t;e++)n[e]=F+a+n[e];return n}function G(){}function z(u){return M(u.name,u)}function V(u,e){return u.async?"async"+(e?P():h):""}function $(u){return u.generator&&!d.moz.starlessGenerator?"*"+h:""}function K(u){var e=u.value,t="";return e.async&&(t+=V(e,!u.computed)),e.generator&&(t+=$(e)?"*":""),t}G.prototype.maybeBlock=function(u,e){var t,r,i=this;return(r=!d.comment||!u.leadingComments,u.type===n.BlockStatement&&r)?[h,this.generateStatement(u,e)]:u.type===n.EmptyStatement&&r?";":(T(function(){t=[F,I(i.generateStatement(u,e))]}),t)},G.prototype.maybeBlockSuffix=function(u,e){var t=w(M(e).toString());return u.type!==n.BlockStatement||d.comment&&u.leadingComments||t?t?[e,a]:[e,F,a]:[e,h]},G.prototype.generatePattern=function(u,e,t){return u.type===n.Identifier?z(u):this.generateExpression(u,e,t)},G.prototype.generateFunctionParams=function(u){var e,t,i,o;if(o=!1,u.type!==n.ArrowFunctionExpression||u.rest||u.defaults&&0!==u.defaults.length||1!==u.params.length||u.params[0].type!==n.Identifier){for((i=u.type===n.ArrowFunctionExpression?[V(u,!1)]:[]).push("("),u.defaults&&(o=!0),e=0,t=u.params.length;e<t;++e)o&&u.defaults[e]?i.push(this.generateAssignment(u.params[e],u.defaults[e],"=",r.Assignment,7)):i.push(this.generatePattern(u.params[e],r.Assignment,7)),e+1<t&&i.push(","+h);u.rest&&(u.params.length&&i.push(","+h),i.push("..."),i.push(z(u.rest))),i.push(")")}else i=[V(u,!0),z(u.params[0])];return i},G.prototype.generateFunctionBody=function(u){var e,t;return e=this.generateFunctionParams(u),u.type===n.ArrowFunctionExpression&&(e.push(h),e.push("=>")),u.expression?(e.push(h),"{"===(t=this.generateExpression(u.body,r.Assignment,7)).toString().charAt(0)&&(t=["(",t,")"]),e.push(t)):e.push(this.maybeBlock(u.body,9)),e},G.prototype.generateIterationForStatement=function(u,e,t){var i=["for"+(e.await?P()+"await":"")+h+"("],o=this;return T(function(){e.left.type===n.VariableDeclaration?T(function(){i.push(e.left.kind+P()),i.push(o.generateStatement(e.left.declarations[0],0))}):i.push(o.generateExpression(e.left,r.Call,7)),i=R(i,u),i=[R(i,o.generateExpression(e.right,r.Assignment,7)),")"]}),i.push(this.maybeBlock(e.body,t)),i},G.prototype.generatePropertyKey=function(u,e){var t=[];return e&&t.push("["),t.push(this.generateExpression(u,r.Assignment,7)),e&&t.push("]"),t},G.prototype.generateAssignment=function(u,e,t,n,i){return r.Assignment<n&&(i|=1),U([this.generateExpression(u,r.Call,i),h+t+h,this.generateExpression(e,r.Assignment,i)],r.Assignment,n)},G.prototype.semicolon=function(u){return!f&&32&u?"":";"},G.Statement={BlockStatement:function(u,e){var t,n,r=["{",F],i=this;return T(function(){var o,s,a,D;for(0===u.body.length&&x&&(t=u.range)[1]-t[0]>2&&("\n"===(n=S.substring(t[0]+1,t[1]-1))[0]&&(r=["{"]),r.push(n)),D=1,8&e&&(D|=16),o=0,s=u.body.length;o<s;++o)x&&(0===o&&(u.body[0].leadingComments&&(t=u.body[0].leadingComments[0].extendedRange,"\n"===(n=S.substring(t[0],t[1]))[0]&&(r=["{"])),u.body[0].leadingComments||j(u.range[0],u.body[0].range[0],r)),!(o>0)||u.body[o-1].trailingComments||u.body[o].leadingComments||j(u.body[o-1].range[1],u.body[o].range[0],r)),o===s-1&&(D|=32),a=u.body[o].leadingComments&&x?i.generateStatement(u.body[o],D):I(i.generateStatement(u.body[o],D)),r.push(a),!w(M(a).toString())&&(x&&o<s-1&&u.body[o+1].leadingComments||r.push(F)),x&&o===s-1&&!u.body[o].trailingComments&&j(u.body[o].range[1],u.range[1],r)}),r.push(I("}")),r},BreakStatement:function(u,e){return u.label?"break "+u.label.name+this.semicolon(e):"break"+this.semicolon(e)},ContinueStatement:function(u,e){return u.label?"continue "+u.label.name+this.semicolon(e):"continue"+this.semicolon(e)},ClassBody:function(u,e){var t=["{",F],n=this;return T(function(e){var i,o;for(i=0,o=u.body.length;i<o;++i)t.push(e),t.push(n.generateExpression(u.body[i],r.Sequence,7)),i+1<o&&t.push(F)}),w(M(t).toString())||t.push(F),t.push(a),t.push("}"),t},ClassDeclaration:function(u,e){var t,n;return t=["class"],u.id&&(t=R(t,this.generateExpression(u.id,r.Sequence,7))),u.superClass&&(n=R("extends",this.generateExpression(u.superClass,r.Unary,7)),t=R(t,n)),t.push(h),t.push(this.generateStatement(u.body,33)),t},DirectiveStatement:function(u,e){return d.raw&&u.raw?u.raw+this.semicolon(e):function(u){var e,t,n,r;for(e=0,r="double"===A?'"':"'",t=u.length;e<t;++e){if(39===(n=u.charCodeAt(e))){r='"';break}if(34===n){r="'";break}92===n&&++e}return r+u+r}(u.directive)+this.semicolon(e)},DoWhileStatement:function(u,e){var t=R("do",this.maybeBlock(u.body,1));return R(t=this.maybeBlockSuffix(u.body,t),["while"+h+"(",this.generateExpression(u.test,r.Sequence,7),")"+this.semicolon(e)])},CatchClause:function(u,e){var t,n=this;return T(function(){var e;u.param?(t=["catch"+h+"(",n.generateExpression(u.param,r.Sequence,7),")"],u.guard&&(e=n.generateExpression(u.guard,r.Sequence,7),t.splice(2,0," if ",e))):t=["catch"]}),t.push(this.maybeBlock(u.body,1)),t},DebuggerStatement:function(u,e){return"debugger"+this.semicolon(e)},EmptyStatement:function(u,e){return";"},ExportDefaultDeclaration:function(e,t){var n=["export"];return n=R(n,"default"),n=u(e.declaration)?R(n,this.generateStatement(e.declaration,32&t?33:1)):R(n,this.generateExpression(e.declaration,r.Assignment,7)+this.semicolon(t))},ExportNamedDeclaration:function(u,e){var t,i=["export"],o=this;return(t=32&e?33:1,u.declaration)?R(i,this.generateStatement(u.declaration,t)):(u.specifiers&&(0===u.specifiers.length?i=R(i,"{"+h+"}"):u.specifiers[0].type===n.ExportBatchSpecifier?i=R(i,this.generateExpression(u.specifiers[0],r.Sequence,7)):(i=R(i,"{"),T(function(e){var t,n;for(i.push(F),t=0,n=u.specifiers.length;t<n;++t)i.push(e),i.push(o.generateExpression(u.specifiers[t],r.Sequence,7)),t+1<n&&i.push(","+F)}),w(M(i).toString())||i.push(F),i.push(a+"}")),u.source?i=R(i,["from"+h,this.generateExpression(u.source,r.Sequence,7),this.semicolon(e)]):i.push(this.semicolon(e))),i)},ExportAllDeclaration:function(u,e){return["export"+h,"*"+h,"from"+h,this.generateExpression(u.source,r.Sequence,7),this.semicolon(e)]},ExpressionStatement:function(u,e){var t,i,o,a;return 123===(i=M(t=[this.generateExpression(u.expression,r.Sequence,7)]).toString()).charCodeAt(0)||"class"===i.slice(0,5)&&(123===(o=i.charCodeAt(5))||s.code.isWhiteSpace(o)||s.code.isLineTerminator(o))||"function"===i.slice(0,8)&&(40===(a=i.charCodeAt(8))||s.code.isWhiteSpace(a)||42===a||s.code.isLineTerminator(a))||function(u){var e,t,n;if("async"!==u.slice(0,5)||!s.code.isWhiteSpace(u.charCodeAt(5)))return!1;for(t=6,n=u.length;t<n&&s.code.isWhiteSpace(u.charCodeAt(t));++t);return t!==n&&"function"===u.slice(t,t+8)&&(40===(e=u.charCodeAt(t+8))||s.code.isWhiteSpace(e)||42===e||s.code.isLineTerminator(e))}(i)||m&&16&e&&u.expression.type===n.Literal&&"string"==typeof u.expression.value?t=["(",t,")"+this.semicolon(e)]:t.push(this.semicolon(e)),t},ImportDeclaration:function(u,e){var t,i,o=this;return 0===u.specifiers.length?["import",h,this.generateExpression(u.source,r.Sequence,7),this.semicolon(e)]:(t=["import"],i=0,u.specifiers[i].type===n.ImportDefaultSpecifier&&(t=R(t,[this.generateExpression(u.specifiers[i],r.Sequence,7)]),++i),u.specifiers[i]&&(0!==i&&t.push(","),u.specifiers[i].type===n.ImportNamespaceSpecifier?t=R(t,[h,this.generateExpression(u.specifiers[i],r.Sequence,7)]):(t.push(h+"{"),u.specifiers.length-i==1?(t.push(h),t.push(this.generateExpression(u.specifiers[i],r.Sequence,7)),t.push(h+"}"+h)):(T(function(e){var n,s;for(t.push(F),n=i,s=u.specifiers.length;n<s;++n)t.push(e),t.push(o.generateExpression(u.specifiers[n],r.Sequence,7)),n+1<s&&t.push(","+F)}),w(M(t).toString())||t.push(F),t.push(a+"}"+h)))),t=R(t,["from"+h,this.generateExpression(u.source,r.Sequence,7),this.semicolon(e)]))},VariableDeclarator:function(u,e){var t=1&e?7:6;return u.init?[this.generateExpression(u.id,r.Assignment,t),h,"=",h,this.generateExpression(u.init,r.Assignment,t)]:this.generatePattern(u.id,r.Assignment,t)},VariableDeclaration:function(u,e){var t,n,r,i,o,s=this;function a(){for(i=u.declarations[0],d.comment&&i.leadingComments?(t.push("\n"),t.push(I(s.generateStatement(i,o)))):(t.push(P()),t.push(s.generateStatement(i,o))),n=1,r=u.declarations.length;n<r;++n)i=u.declarations[n],d.comment&&i.leadingComments?(t.push(","+F),t.push(I(s.generateStatement(i,o)))):(t.push(","+h),t.push(s.generateStatement(i,o)))}return t=[u.kind],o=1&e?1:0,u.declarations.length>1?T(a):a(),t.push(this.semicolon(e)),t},ThrowStatement:function(u,e){return[R("throw",this.generateExpression(u.argument,r.Sequence,7)),this.semicolon(e)]},TryStatement:function(u,e){var t,n,r,i;if(t=["try",this.maybeBlock(u.block,1)],t=this.maybeBlockSuffix(u.block,t),u.handlers)for(n=0,r=u.handlers.length;n<r;++n)t=R(t,this.generateStatement(u.handlers[n],1)),(u.finalizer||n+1!==r)&&(t=this.maybeBlockSuffix(u.handlers[n].body,t));else{for(n=0,r=(i=u.guardedHandlers||[]).length;n<r;++n)t=R(t,this.generateStatement(i[n],1)),(u.finalizer||n+1!==r)&&(t=this.maybeBlockSuffix(i[n].body,t));if(u.handler)if(Array.isArray(u.handler))for(n=0,r=u.handler.length;n<r;++n)t=R(t,this.generateStatement(u.handler[n],1)),(u.finalizer||n+1!==r)&&(t=this.maybeBlockSuffix(u.handler[n].body,t));else t=R(t,this.generateStatement(u.handler,1)),u.finalizer&&(t=this.maybeBlockSuffix(u.handler.body,t))}return u.finalizer&&(t=R(t,["finally",this.maybeBlock(u.finalizer,1)])),t},SwitchStatement:function(u,e){var t,n,i,o,s,a=this;if(T(function(){t=["switch"+h+"(",a.generateExpression(u.discriminant,r.Sequence,7),")"+h+"{"+F]}),u.cases)for(i=0,s=1,o=u.cases.length;i<o;++i)i===o-1&&(s|=32),n=I(this.generateStatement(u.cases[i],s)),t.push(n),w(M(n).toString())||t.push(F);return t.push(I("}")),t},SwitchCase:function(u,e){var t,i,o,s,a,D=this;return T(function(){for(t=u.test?[R("case",D.generateExpression(u.test,r.Sequence,7)),":"]:["default:"],o=0,(s=u.consequent.length)&&u.consequent[0].type===n.BlockStatement&&(i=D.maybeBlock(u.consequent[0],1),t.push(i),o=1),o===s||w(M(t).toString())||t.push(F),a=1;o<s;++o)o===s-1&&32&e&&(a|=32),i=I(D.generateStatement(u.consequent[o],a)),t.push(i),o+1===s||w(M(i).toString())||t.push(F)}),t},IfStatement:function(u,e){var t,i,o=this;return T(function(){t=["if"+h+"(",o.generateExpression(u.test,r.Sequence,7),")"]}),i=1,32&e&&(i|=32),u.alternate?(t.push(this.maybeBlock(u.consequent,1)),t=this.maybeBlockSuffix(u.consequent,t),t=u.alternate.type===n.IfStatement?R(t,["else ",this.generateStatement(u.alternate,i)]):R(t,R("else",this.maybeBlock(u.alternate,i)))):t.push(this.maybeBlock(u.consequent,i)),t},ForStatement:function(u,e){var t,i=this;return T(function(){t=["for"+h+"("],u.init?u.init.type===n.VariableDeclaration?t.push(i.generateStatement(u.init,0)):(t.push(i.generateExpression(u.init,r.Sequence,6)),t.push(";")):t.push(";"),u.test&&(t.push(h),t.push(i.generateExpression(u.test,r.Sequence,7))),t.push(";"),u.update&&(t.push(h),t.push(i.generateExpression(u.update,r.Sequence,7))),t.push(")")}),t.push(this.maybeBlock(u.body,32&e?33:1)),t},ForInStatement:function(u,e){return this.generateIterationForStatement("in",u,32&e?33:1)},ForOfStatement:function(u,e){return this.generateIterationForStatement("of",u,32&e?33:1)},LabeledStatement:function(u,e){return[u.label.name+":",this.maybeBlock(u.body,32&e?33:1)]},Program:function(u,e){var t,n,r,i,o;for(r=0,i=u.body.length,t=[g&&i>0?"\n":""],o=17;r<i;++r)g||r!==i-1||(o|=32),x&&(0!==r||u.body[0].leadingComments||j(u.range[0],u.body[r].range[0],t),!(r>0)||u.body[r-1].trailingComments||u.body[r].leadingComments||j(u.body[r-1].range[1],u.body[r].range[0],t)),n=I(this.generateStatement(u.body[r],o)),t.push(n),r+1<i&&!w(M(n).toString())&&(x&&u.body[r+1].leadingComments||t.push(F)),x&&r===i-1&&!u.body[r].trailingComments&&j(u.body[r].range[1],u.range[1],t);return t},FunctionDeclaration:function(u,e){return[V(u,!0),"function",$(u)||P(),u.id?z(u.id):"",this.generateFunctionBody(u)]},ReturnStatement:function(u,e){return u.argument?[R("return",this.generateExpression(u.argument,r.Sequence,7)),this.semicolon(e)]:["return"+this.semicolon(e)]},WhileStatement:function(u,e){var t,n=this;return T(function(){t=["while"+h+"(",n.generateExpression(u.test,r.Sequence,7),")"]}),t.push(this.maybeBlock(u.body,32&e?33:1)),t},WithStatement:function(u,e){var t,n=this;return T(function(){t=["with"+h+"(",n.generateExpression(u.object,r.Sequence,7),")"]}),t.push(this.maybeBlock(u.body,32&e?33:1)),t}},L(G.prototype,G.Statement),G.Expression={SequenceExpression:function(u,e,t){var n,i,o;for(r.Sequence<e&&(t|=1),n=[],i=0,o=u.expressions.length;i<o;++i)n.push(this.generateExpression(u.expressions[i],r.Assignment,t)),i+1<o&&n.push(","+h);return U(n,r.Sequence,e)},AssignmentExpression:function(u,e,t){return this.generateAssignment(u.left,u.right,u.operator,e,t)},ArrowFunctionExpression:function(u,e,t){return U(this.generateFunctionBody(u),r.ArrowFunction,e)},ConditionalExpression:function(u,e,t){return r.Conditional<e&&(t|=1),U([this.generateExpression(u.test,r.Coalesce,t),h+"?"+h,this.generateExpression(u.consequent,r.Assignment,t),h+":"+h,this.generateExpression(u.alternate,r.Assignment,t)],r.Conditional,e)},LogicalExpression:function(u,e,t){return"??"===u.operator&&(t|=64),this.BinaryExpression(u,e,t)},BinaryExpression:function(u,e,t){var n,i,o,a,D,l;return(a=v[u.operator],i="**"===u.operator?r.Postfix:a,o="**"===u.operator?a:a+1,a<e&&(t|=1),n=47===(l=(D=this.generateExpression(u.left,i,t)).toString()).charCodeAt(l.length-1)&&s.code.isIdentifierPartES5(u.operator.charCodeAt(0))?[D,P(),u.operator]:R(D,u.operator),D=this.generateExpression(u.right,o,t),"/"===u.operator&&"/"===D.toString().charAt(0)||"<"===u.operator.slice(-1)&&"!--"===D.toString().slice(0,3)?(n.push(P()),n.push(D)):n=R(n,D),"in"===u.operator&&!(1&t)||("||"===u.operator||"&&"===u.operator)&&64&t)?["(",n,")"]:U(n,a,e)},CallExpression:function(u,e,t){var n,i,o;for(n=[this.generateExpression(u.callee,r.Call,3)],u.optional&&n.push("?."),n.push("("),i=0,o=u.arguments.length;i<o;++i)n.push(this.generateExpression(u.arguments[i],r.Assignment,7)),i+1<o&&n.push(","+h);return(n.push(")"),2&t)?U(n,r.Call,e):["(",n,")"]},ChainExpression:function(u,e,t){return r.OptionalChaining<e&&(t|=2),U(this.generateExpression(u.expression,r.OptionalChaining,t),r.OptionalChaining,e)},NewExpression:function(u,e,t){var n,i,o,s;if(i=u.arguments.length,s=4&t&&!E&&0===i?5:1,n=R("new",this.generateExpression(u.callee,r.New,s)),!(4&t)||E||i>0){for(n.push("("),o=0;o<i;++o)n.push(this.generateExpression(u.arguments[o],r.Assignment,7)),o+1<i&&n.push(","+h);n.push(")")}return U(n,r.New,e)},MemberExpression:function(u,e,t){var i,o;return i=[this.generateExpression(u.object,r.Call,2&t?3:1)],u.computed?(u.optional&&i.push("?."),i.push("["),i.push(this.generateExpression(u.property,r.Sequence,2&t?7:5)),i.push("]")):(!u.optional&&u.object.type===n.Literal&&"number"==typeof u.object.value&&0>(o=M(i).toString()).indexOf(".")&&!/[eExX]/.test(o)&&s.code.isDecimalDigit(o.charCodeAt(o.length-1))&&!(o.length>=2&&48===o.charCodeAt(0))&&i.push(" "),i.push(u.optional?"?.":"."),i.push(z(u.property))),U(i,r.Member,e)},MetaProperty:function(u,e,t){var n;return(n=[]).push("string"==typeof u.meta?u.meta:z(u.meta)),n.push("."),n.push("string"==typeof u.property?u.property:z(u.property)),U(n,r.Member,e)},UnaryExpression:function(u,e,t){var n,i,o,a,D;return i=this.generateExpression(u.argument,r.Unary,7),""===h?n=R(u.operator,i):(n=[u.operator],u.operator.length>2?n=R(n,i):(D=(a=M(n).toString()).charCodeAt(a.length-1),o=i.toString().charCodeAt(0),((43===D||45===D)&&D===o||s.code.isIdentifierPartES5(D)&&s.code.isIdentifierPartES5(o))&&n.push(P()),n.push(i))),U(n,r.Unary,e)},YieldExpression:function(u,e,t){var n;return n=u.delegate?"yield*":"yield",u.argument&&(n=R(n,this.generateExpression(u.argument,r.Yield,7))),U(n,r.Yield,e)},AwaitExpression:function(u,e,t){return U(R(u.all?"await*":"await",this.generateExpression(u.argument,r.Await,7)),r.Await,e)},UpdateExpression:function(u,e,t){return u.prefix?U([u.operator,this.generateExpression(u.argument,r.Unary,7)],r.Unary,e):U([this.generateExpression(u.argument,r.Postfix,7),u.operator],r.Postfix,e)},FunctionExpression:function(u,e,t){var n=[V(u,!0),"function"];return u.id?(n.push($(u)||P()),n.push(z(u.id))):n.push($(u)||h),n.push(this.generateFunctionBody(u)),n},ArrayPattern:function(u,e,t){return this.ArrayExpression(u,e,t,!0)},ArrayExpression:function(u,e,t,n){var i,o,s=this;return u.elements.length?(i=["[",(o=!n&&u.elements.length>1)?F:""],T(function(e){var t,n;for(t=0,n=u.elements.length;t<n;++t)u.elements[t]?(i.push(o?e:""),i.push(s.generateExpression(u.elements[t],r.Assignment,7))):(o&&i.push(e),t+1===n&&i.push(",")),t+1<n&&i.push(","+(o?F:h))}),o&&!w(M(i).toString())&&i.push(F),i.push(o?a:""),i.push("]"),i):"[]"},RestElement:function(u,e,t){return"..."+this.generatePattern(u.argument)},ClassExpression:function(u,e,t){var n,i;return n=["class"],u.id&&(n=R(n,this.generateExpression(u.id,r.Sequence,7))),u.superClass&&(i=R("extends",this.generateExpression(u.superClass,r.Unary,7)),n=R(n,i)),n.push(h),n.push(this.generateStatement(u.body,33)),n},MethodDefinition:function(u,e,t){var n,r;return n=u.static?["static"+h]:[],r="get"===u.kind||"set"===u.kind?[R(u.kind,this.generatePropertyKey(u.key,u.computed)),this.generateFunctionBody(u.value)]:[K(u),this.generatePropertyKey(u.key,u.computed),this.generateFunctionBody(u.value)],R(n,r)},Property:function(u,e,t){return"get"===u.kind||"set"===u.kind?[u.kind,P(),this.generatePropertyKey(u.key,u.computed),this.generateFunctionBody(u.value)]:u.shorthand?"AssignmentPattern"===u.value.type?this.AssignmentPattern(u.value,r.Sequence,7):this.generatePropertyKey(u.key,u.computed):u.method?[K(u),this.generatePropertyKey(u.key,u.computed),this.generateFunctionBody(u.value)]:[this.generatePropertyKey(u.key,u.computed),":"+h,this.generateExpression(u.value,r.Assignment,7)]},ObjectExpression:function(u,e,t){var n,i,o,s,D=this;return u.properties.length?(i=u.properties.length>1,T(function(){s=D.generateExpression(u.properties[0],r.Sequence,7)}),i||(n=M(s).toString(),/[\r\n]/g.test(n)))?(T(function(e){var t,n;if(o=["{",F,e,s],i)for(o.push(","+F),t=1,n=u.properties.length;t<n;++t)o.push(e),o.push(D.generateExpression(u.properties[t],r.Sequence,7)),t+1<n&&o.push(","+F)}),w(M(o).toString())||o.push(F),o.push(a),o.push("}"),o):["{",h,s,h,"}"]:"{}"},AssignmentPattern:function(u,e,t){return this.generateAssignment(u.left,u.right,"=",e,t)},ObjectPattern:function(u,e,t){var i,o,s,D,l,c=this;if(!u.properties.length)return"{}";if(D=!1,1===u.properties.length)(l=u.properties[0]).type===n.Property&&l.value.type!==n.Identifier&&(D=!0);else for(o=0,s=u.properties.length;o<s;++o)if((l=u.properties[o]).type===n.Property&&!l.shorthand){D=!0;break}return i=["{",D?F:""],T(function(e){var t,n;for(t=0,n=u.properties.length;t<n;++t)i.push(D?e:""),i.push(c.generateExpression(u.properties[t],r.Sequence,7)),t+1<n&&i.push(","+(D?F:h))}),D&&!w(M(i).toString())&&i.push(F),i.push(D?a:""),i.push("}"),i},ThisExpression:function(u,e,t){return"this"},Super:function(u,e,t){return"super"},Identifier:function(u,e,t){return z(u)},ImportDefaultSpecifier:function(u,e,t){return z(u.id||u.local)},ImportNamespaceSpecifier:function(u,e,t){var n=["*"],r=u.id||u.local;return r&&n.push(h+"as"+P()+z(r)),n},ImportSpecifier:function(u,e,t){var n=u.imported,r=[n.name],i=u.local;return i&&i.name!==n.name&&r.push(P()+"as"+P()+z(i)),r},ExportSpecifier:function(u,e,t){var n=u.local,r=[n.name],i=u.exported;return i&&i.name!==n.name&&r.push(P()+"as"+P()+z(i)),r},Literal:function(u,e,t){var r;if(u.hasOwnProperty("raw")&&B&&d.raw)try{if((r=B(u.raw).body[0].expression).type===n.Literal&&r.value===u.value)return u.raw}catch(u){}return u.regex?"/"+u.regex.pattern+"/"+u.regex.flags:"bigint"==typeof u.value?u.value.toString()+"n":u.bigint?u.bigint+"n":null===u.value?"null":"string"==typeof u.value?function(u){var e,t,n,r,i,o="",a=0,D=0;for(e=0,t=u.length;e<t;++e){if(39===(n=u.charCodeAt(e)))++a;else if(34===n)++D;else if(47===n&&l)o+="\\";else if(s.code.isLineTerminator(n)||92===n){o+=function(u){if(92===u)return"\\\\";if(10===u)return"\\n";if(13===u)return"\\r";if(8232===u)return"\\u2028";if(8233===u)return"\\u2029";throw Error("Incorrectly classified character")}(n);continue}else if(!s.code.isIdentifierPartES5(n)&&(l&&n<32||!l&&!C&&(n<32||n>126))){o+=function(u,e){var t;return 8===u?"\\b":12===u?"\\f":9===u?"\\t":(t=u.toString(16).toUpperCase(),l||u>255)?"\\u"+"0000".slice(t.length)+t:0!==u||s.code.isDecimalDigit(e)?11===u?"\\x0B":"\\x"+"00".slice(t.length)+t:"\\0"}(n,u.charCodeAt(e+1));continue}o+=String.fromCharCode(n)}if(i=(r=!("double"===A||"auto"===A&&D<a))?"'":'"',!(r?a:D))return i+o+i;for(e=0,u=o,o=i,t=u.length;e<t;++e)(39===(n=u.charCodeAt(e))&&r||34===n&&!r)&&(o+="\\"),o+=String.fromCharCode(n);return o+i}(u.value):"number"==typeof u.value?function(u){var e,t,n,r,i;if(u!=u)throw Error("Numeric literal whose value is NaN");if(u<0||0===u&&1/u<0)throw Error("Numeric literal whose value is negative");if(u===1/0)return l?"null":c?"1e400":"1e+400";if(e=""+u,!c||e.length<3)return e;for(t=e.indexOf("."),l||48!==e.charCodeAt(0)||1!==t||(t=0,e=e.slice(1)),n=e,e=e.replace("e+","e"),r=0,(i=n.indexOf("e"))>0&&(r=+n.slice(i+1),n=n.slice(0,i)),t>=0&&(r-=n.length-t-1,n=+(n.slice(0,t)+n.slice(t+1))+""),i=0;48===n.charCodeAt(n.length+i-1);)--i;return 0!==i&&(r-=i,n=n.slice(0,i)),0!==r&&(n+="e"+r),(n.length<e.length||p&&u>1e12&&Math.floor(u)===u&&(n="0x"+u.toString(16)).length<e.length)&&+n===u&&(e=n),e}(u.value):"boolean"==typeof u.value?u.value?"true":"false":function(u){var e,t,n,r,i,o,s,a;if(t=u.toString(),u.source){if(!(e=t.match(/\/([^/]*)$/)))return t;for(r=0,n=e[1],t="",s=!1,a=!1,i=u.source.length;r<i;++r)o=u.source.charCodeAt(r),a?(t+=O(o,a),a=!1):(s?93===o&&(s=!1):47===o?t+="\\":91===o&&(s=!0),t+=O(o,a),a=92===o);return"/"+t+"/"+n}return t}(u.value)},GeneratorExpression:function(u,e,t){return this.ComprehensionExpression(u,e,t)},ComprehensionExpression:function(u,e,t){var i,o,s,a,D=this;return i=u.type===n.GeneratorExpression?["("]:["["],d.moz.comprehensionExpressionStartsWithAssignment&&(a=this.generateExpression(u.body,r.Assignment,7),i.push(a)),u.blocks&&T(function(){for(o=0,s=u.blocks.length;o<s;++o)a=D.generateExpression(u.blocks[o],r.Sequence,7),o>0||d.moz.comprehensionExpressionStartsWithAssignment?i=R(i,a):i.push(a)}),u.filter&&(i=R(i,"if"+h),a=this.generateExpression(u.filter,r.Sequence,7),i=R(i,["(",a,")"])),d.moz.comprehensionExpressionStartsWithAssignment||(a=this.generateExpression(u.body,r.Assignment,7),i=R(i,a)),i.push(u.type===n.GeneratorExpression?")":"]"),i},ComprehensionBlock:function(u,e,t){var i;return i=R(i=u.left.type===n.VariableDeclaration?[u.left.kind,P(),this.generateStatement(u.left.declarations[0],0)]:this.generateExpression(u.left,r.Call,7),u.of?"of":"in"),i=R(i,this.generateExpression(u.right,r.Sequence,7)),["for"+h+"(",i,")"]},SpreadElement:function(u,e,t){return["...",this.generateExpression(u.argument,r.Assignment,7)]},TaggedTemplateExpression:function(u,e,t){var n=3;return 2&t||(n=1),U([this.generateExpression(u.tag,r.Call,n),this.generateExpression(u.quasi,r.Primary,4)],r.TaggedTemplate,e)},TemplateElement:function(u,e,t){return u.value.raw},TemplateLiteral:function(u,e,t){var n,i,o;for(i=0,n=["`"],o=u.quasis.length;i<o;++i)n.push(this.generateExpression(u.quasis[i],r.Primary,7)),i+1<o&&(n.push("${"+h),n.push(this.generateExpression(u.expressions[i],r.Sequence,7)),n.push(h+"}"));return n.push("`"),n},ModuleSpecifier:function(u,e,t){return this.Literal(u,e,t)},ImportExpression:function(u,e,t){return U(["import(",this.generateExpression(u.source,r.Assignment,7),")"],r.Call,e)}},L(G.prototype,G.Expression),G.prototype.generateExpression=function(u,e,t){var i,o,s,a;return(o=u.type||n.Property,d.verbatim&&u.hasOwnProperty(d.verbatim))?M(a="string"==typeof(s=u[d.verbatim])?U(W(s),r.Sequence,e):U(a=W(s.content),null!=s.precedence?s.precedence:r.Sequence,e),u):(i=this[o](u,e,t),d.comment&&(i=N(u,i)),M(i,u))},G.prototype.generateStatement=function(u,e){var t,r;return t=this[u.type](u,e),d.comment&&(t=N(u,t)),r=M(t).toString(),u.type!==n.Program||g||""!==F||"\n"!==r.charAt(r.length-1)||(t=y?M(t).replaceRight(/\s+$/,""):r.replace(/\s+$/,"")),M(t,u)},_().format,e.cM=function(n,o){var s,v,w=_();return(null!=o?("string"==typeof o.indent&&(w.format.indent.style=o.indent),"number"==typeof o.base&&(w.format.indent.base=o.base),D=(o=k(w,o)).format.indent.style,a="string"==typeof o.base?o.base:b(D,o.format.indent.base)):a=b(D=(o=w).format.indent.style,o.format.indent.base),l=o.format.json,c=o.format.renumber,p=!l&&o.format.hexadecimal,A=l?"double":o.format.quotes,C=o.format.escapeless,F=o.format.newline,h=o.format.space,o.format.compact&&(F=h=D=a=""),E=o.format.parentheses,f=o.format.semicolons,g=o.format.safeConcatenation,m=o.directive,B=l?null:o.parse,y=o.sourceMap,S=o.sourceCode,x=o.format.preserveBlankLines&&null!==S,d=o,y&&(i=e.T?global.sourceMap.SourceNode:t(62096).ee),s=function(e){var t;if(t=new G,u(e))return t.generateStatement(e,1);if(G.Expression.hasOwnProperty(e.type))return t.generateExpression(e,r.Sequence,7);throw Error("Unknown node type: "+e.type)}(n),y)?(v=s.toStringWithSourceMap({file:o.file,sourceRoot:o.sourceMapRoot}),o.sourceContent&&v.map.setSourceContent(o.sourceMap,o.sourceContent),o.sourceMapWithCode)?v:v.map.toString():(v={code:s.toString(),map:null},o.sourceMapWithCode?v:v.code)},o.attachComments,k({},r),e.T=!1}()},4704(u,e){!function u(e){"use strict";var t,n,r,i,o,s;function a(u){var e,t,n={};for(e in u)u.hasOwnProperty(e)&&("object"==typeof(t=u[e])&&null!==t?n[e]=a(t):n[e]=t);return n}function D(u,e){this.parent=u,this.key=e}function l(u,e,t,n){this.node=u,this.path=e,this.wrap=t,this.ref=n}function c(){}function p(u){return null!=u&&"object"==typeof u&&"string"==typeof u.type}function A(u,e){return(u===t.ObjectExpression||u===t.ObjectPattern)&&"properties"===e}function C(u,e){for(var t=u.length-1;t>=0;--t)if(u[t].node===e)return!0;return!1}function F(u,e){return new c().traverse(u,e)}return t={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},r={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:i={},Skip:o={},Remove:s={}},D.prototype.replace=function(u){this.parent[this.key]=u},D.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var u,e,t,n,r;function i(u,e){if(Array.isArray(e))for(t=0,n=e.length;t<n;++t)u.push(e[t]);else u.push(e)}if(!this.__current.path)return null;for(u=2,r=[],e=this.__leavelist.length;u<e;++u)i(r,this.__leavelist[u].path);return i(r,this.__current.path),r},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var u,e,t;for(u=1,t=[],e=this.__leavelist.length;u<e;++u)t.push(this.__leavelist[u].node);return t},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(u,e){var t,n;return n=void 0,t=this.__current,this.__current=e,this.__state=null,u&&(n=u.call(this,e.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=t,n},c.prototype.notify=function(u){this.__state=u},c.prototype.skip=function(){this.notify(o)},c.prototype.break=function(){this.notify(i)},c.prototype.remove=function(){this.notify(s)},c.prototype.__initialize=function(u,e){this.visitor=e,this.root=u,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===e.fallback?this.__fallback=Object.keys:"function"==typeof e.fallback&&(this.__fallback=e.fallback),this.__keys=r,e.keys&&(this.__keys=Object.assign(Object.create(this.__keys),e.keys))},c.prototype.traverse=function(u,e){var t,n,r,s,a,D,c,F,h,E,f,g;for(this.__initialize(u,e),g={},t=this.__worklist,n=this.__leavelist,t.push(new l(u,null,null,null)),n.push(new l(null,null,null,null));t.length;){if((r=t.pop())===g){if(r=n.pop(),D=this.__execute(e.leave,r),this.__state===i||D===i)return;continue}if(r.node){if(D=this.__execute(e.enter,r),this.__state===i||D===i)return;if(t.push(g),n.push(r),this.__state===o||D===o)continue;if(a=(s=r.node).type||r.wrap,!(E=this.__keys[a]))if(this.__fallback)E=this.__fallback(s);else throw Error("Unknown node type "+a+".");for(F=E.length;(F-=1)>=0;)if(f=s[c=E[F]]){if(Array.isArray(f)){for(h=f.length;(h-=1)>=0;)if(!(!f[h]||C(n,f[h]))){if(A(a,E[F]))r=new l(f[h],[c,h],"Property",null);else{if(!p(f[h]))continue;r=new l(f[h],[c,h],null,null)}t.push(r)}}else if(p(f)){if(C(n,f))continue;t.push(new l(f,c,null,null))}}}}},c.prototype.replace=function(u,e){var t,n,r,a,c,C,F,h,E,f,g,m,d;function B(u){var e,n,r,i;if(u.ref.remove()){for(n=u.ref.key,i=u.ref.parent,e=t.length;e--;)if((r=t[e]).ref&&r.ref.parent===i){if(r.ref.key<n)break;--r.ref.key}}}for(this.__initialize(u,e),g={},t=this.__worklist,n=this.__leavelist,m={root:u},C=new l(u,null,null,new D(m,"root")),t.push(C),n.push(C);t.length;){if((C=t.pop())===g){if(C=n.pop(),void 0!==(c=this.__execute(e.leave,C))&&c!==i&&c!==o&&c!==s&&C.ref.replace(c),(this.__state===s||c===s)&&B(C),this.__state===i||c===i)return m.root;continue}if(void 0!==(c=this.__execute(e.enter,C))&&c!==i&&c!==o&&c!==s&&(C.ref.replace(c),C.node=c),(this.__state===s||c===s)&&(B(C),C.node=null),this.__state===i||c===i)break;if(r=C.node){if(t.push(g),n.push(C),this.__state!==o&&c!==o){if(a=r.type||C.wrap,!(E=this.__keys[a]))if(this.__fallback)E=this.__fallback(r);else throw Error("Unknown node type "+a+".");for(F=E.length;(F-=1)>=0;)if(f=r[d=E[F]])if(Array.isArray(f)){for(h=f.length;(h-=1)>=0;)if(f[h]){if(A(a,E[F]))C=new l(f[h],[d,h],"Property",new D(f,h));else{if(!p(f[h]))continue;C=new l(f[h],[d,h],null,new D(f,h))}t.push(C)}}else p(f)&&t.push(new l(f,d,null,new D(r,d)))}}}return m.root},e.Syntax=t,e.traverse=F,e.replace=function(u,e){return new c().replace(u,e)},e.attachComments=function(u,e,t){var r,i,o,s,D=[];if(!u.range)throw Error("attachComments needs range information");if(!t.length){if(e.length){for(o=0,i=e.length;o<i;o+=1)(r=a(e[o])).extendedRange=[0,u.range[0]],D.push(r);u.leadingComments=D}return u}for(o=0,i=e.length;o<i;o+=1)D.push(function(u,e){var t;return t=function(u,e){var t,n,r,i;for(n=u.length,r=0;n;)e(u[i=r+(t=n>>>1)])?n=t:(r=i+1,n-=t+1);return r}(e,function(e){return e.range[0]>u.range[0]}),u.extendedRange=[u.range[0],u.range[1]],t!==e.length&&(u.extendedRange[1]=e[t].range[0]),(t-=1)>=0&&(u.extendedRange[0]=e[t].range[1]),u}(a(e[o]),t));return s=0,F(u,{enter:function(u){for(var e;s<D.length&&!((e=D[s]).extendedRange[1]>u.range[0]);)e.extendedRange[1]===u.range[0]?(u.leadingComments||(u.leadingComments=[]),u.leadingComments.push(e),D.splice(s,1)):s+=1;return s===D.length?n.Break:D[s].extendedRange[0]>u.range[1]?n.Skip:void 0}}),s=0,F(u,{leave:function(u){for(var e;s<D.length&&(e=D[s],!(u.range[1]<e.extendedRange[0]));)u.range[1]===e.extendedRange[0]?(u.trailingComments||(u.trailingComments=[]),u.trailingComments.push(e),D.splice(s,1)):s+=1;return s===D.length?n.Break:D[s].extendedRange[0]>u.range[1]?n.Skip:void 0}}),u},e.VisitorKeys=r,e.VisitorOption=n,e.Controller=c,e.cloneEnvironment=function(){return u({})},e}(e)},46543(u){!function(){"use strict";function e(u){if(null==u)return!1;switch(u.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function t(u){switch(u.type){case"IfStatement":if(null!=u.alternate)return u.alternate;return u.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return u.body}return null}u.exports={isExpression:function(u){if(null==u)return!1;switch(u.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(u){if(null==u)return!1;switch(u.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(u){return e(u)||null!=u&&"FunctionDeclaration"===u.type},isProblematicIfStatement:function(u){var e;if("IfStatement"!==u.type||null==u.alternate)return!1;e=u.consequent;do{if("IfStatement"===e.type&&null==e.alternate)return!0;e=t(e)}while(e);return!1},trailingStatement:t}}()},14562(u){!function(){"use strict";var e,t,n,r,i,o;function s(u){return u<=65535?String.fromCharCode(u):String.fromCharCode(Math.floor((u-65536)/1024)+55296)+String.fromCharCode((u-65536)%1024+56320)}for(t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],o=0,r=Array(128);o<128;++o)r[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(o=0,i=Array(128);o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;u.exports={isDecimalDigit:function(u){return 48<=u&&u<=57},isHexDigit:function(u){return 48<=u&&u<=57||97<=u&&u<=102||65<=u&&u<=70},isOctalDigit:function(u){return u>=48&&u<=55},isWhiteSpace:function(u){return 32===u||9===u||11===u||12===u||160===u||u>=5760&&n.indexOf(u)>=0},isLineTerminator:function(u){return 10===u||13===u||8232===u||8233===u},isIdentifierStartES5:function(u){return u<128?r[u]:t.NonAsciiIdentifierStart.test(s(u))},isIdentifierPartES5:function(u){return u<128?i[u]:t.NonAsciiIdentifierPart.test(s(u))},isIdentifierStartES6:function(u){return u<128?r[u]:e.NonAsciiIdentifierStart.test(s(u))},isIdentifierPartES6:function(u){return u<128?i[u]:e.NonAsciiIdentifierPart.test(s(u))}}}()},21204(u,e,t){!function(){"use strict";var e=t(14562);function n(u,e){return(!!e||"yield"!==u)&&r(u,e)}function r(u,e){if(e&&function(u){switch(u){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(u))return!0;switch(u.length){case 2:return"if"===u||"in"===u||"do"===u;case 3:return"var"===u||"for"===u||"new"===u||"try"===u;case 4:return"this"===u||"else"===u||"case"===u||"void"===u||"with"===u||"enum"===u;case 5:return"while"===u||"break"===u||"catch"===u||"throw"===u||"const"===u||"yield"===u||"class"===u||"super"===u;case 6:return"return"===u||"typeof"===u||"delete"===u||"switch"===u||"export"===u||"import"===u;case 7:return"default"===u||"finally"===u||"extends"===u;case 8:return"function"===u||"continue"===u||"debugger"===u;case 10:return"instanceof"===u;default:return!1}}function i(u,e){return"null"===u||"true"===u||"false"===u||n(u,e)}function o(u,e){return"null"===u||"true"===u||"false"===u||r(u,e)}function s(u){var t,n,r;if(0===u.length||(r=u.charCodeAt(0),!e.isIdentifierStartES5(r)))return!1;for(t=1,n=u.length;t<n;++t)if(r=u.charCodeAt(t),!e.isIdentifierPartES5(r))return!1;return!0}function a(u){var t,n,r,i,o;if(0===u.length)return!1;for(t=0,o=e.isIdentifierStartES6,n=u.length;t<n;++t){if(55296<=(r=u.charCodeAt(t))&&r<=56319){if(++t>=n||!(56320<=(i=u.charCodeAt(t))&&i<=57343))return!1;r=(r-55296)*1024+(i-56320)+65536}if(!o(r))return!1;o=e.isIdentifierPartES6}return!0}u.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:i,isReservedWordES6:o,isRestrictedWord:function(u){return"eval"===u||"arguments"===u},isIdentifierNameES5:s,isIdentifierNameES6:a,isIdentifierES5:function(u,e){return s(u)&&!i(u,e)},isIdentifierES6:function(u,e){return a(u)&&!o(u,e)}}}()},71562(u,e,t){!function(){"use strict";e.ast=t(46543),e.code=t(14562),e.keyword=t(21204)}()},44187(u){u.exports=function(u,e,t,n){var r=-1,i=null==u?0:u.length;for(n&&i&&(t=u[++r]);++r<i;)t=e(t,u[r],r,u);return t}},52837(u){u.exports=function(u){return u.split("")}},39546(u){var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;u.exports=function(u){return u.match(e)||[]}},51035(u){u.exports=function(u){return function(e){return null==u?void 0:u[e]}}},28931(u,e,t){var n=t(73501);u.exports=function(u,e,t){var r=u.length;return t=void 0===t?r:t,!e&&t>=r?u:n(u,e,t)}},4326(u,e,t){var n=t(28931),r=t(83417),i=t(82237),o=t(95243);u.exports=function(u){return function(e){var t=r(e=o(e))?i(e):void 0,s=t?t[0]:e.charAt(0),a=t?n(t,1).join(""):e.slice(1);return s[u]()+a}}},93640(u,e,t){var n=t(44187),r=t(45881),i=t(39850),o=RegExp("['’]","g");u.exports=function(u){return function(e){return n(i(r(e).replace(o,"")),u,"")}}},69968(u,e,t){u.exports=t(51035)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},83417(u){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");u.exports=function(u){return e.test(u)}},15813(u){var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;u.exports=function(u){return e.test(u)}},82237(u,e,t){var n=t(52837),r=t(83417),i=t(92013);u.exports=function(u){return r(u)?i(u):n(u)}},92013(u){var e="\\ud800-\\udfff",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^"+e+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+t+"|"+n+")?",a="[\\ufe0e\\ufe0f]?",D="(?:\\u200d(?:"+[r,i,o].join("|")+")"+a+s+")*",l=RegExp(n+"(?="+n+")|"+("(?:"+[r+t+"?",t,i,o,"["+e+"]"].join("|"))+")"+(a+s+D),"g");u.exports=function(u){return u.match(l)||[]}},10482(u){var e="\\ud800-\\udfff",t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="['’]",s="["+i+"]",a="["+n+"]",D="[^"+e+i+"\\d+"+t+n+r+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+r+"]",A="(?:"+a+"|"+D+")",C="(?:"+p+"|"+D+")",F="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",h="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",E="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",f="[\\ufe0e\\ufe0f]?",g="(?:\\u200d(?:"+["[^"+e+"]",l,c].join("|")+")"+f+E+")*",m="(?:"+["["+t+"]",l,c].join("|")+")"+(f+E+g),d=RegExp([p+"?"+a+"+"+F+"(?="+[s,p,"$"].join("|")+")",C+"+"+h+"(?="+[s,p+A,"$"].join("|")+")",p+"?"+A+"+"+F,p+"+"+h,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",m].join("|"),"g");u.exports=function(u){return u.match(d)||[]}},99677(u,e,t){var n=t(56005);u.exports=t(93640)(function(u,e,t){return e=e.toLowerCase(),u+(t?n(e):e)})},56005(u,e,t){var n=t(95243),r=t(5485);u.exports=function(u){return r(n(u).toLowerCase())}},45881(u,e,t){var n=t(69968),r=t(95243),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");u.exports=function(u){return(u=r(u))&&u.replace(i,n).replace(o,"")}},79867(u,e,t){u.exports=t(93640)(function(u,e,t){return u+(t?"_":"")+e.toLowerCase()})},5485(u,e,t){u.exports=t(4326)("toUpperCase")},39850(u,e,t){var n=t(39546),r=t(15813),i=t(95243),o=t(10482);u.exports=function(u,e,t){return(u=i(u),void 0===(e=t?void 0:e))?r(u)?o(u):n(u):u.match(e)||[]}},7604(u,e,t){var n=t(59002),r=Object.prototype.hasOwnProperty,i="u">typeof Map;function o(){this._array=[],this._set=i?new Map:Object.create(null)}o.fromArray=function(u,e){for(var t=new o,n=0,r=u.length;n<r;n++)t.add(u[n],e);return t},o.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(u,e){var t=i?u:n.toSetString(u),o=i?this.has(u):r.call(this._set,t),s=this._array.length;(!o||e)&&this._array.push(u),o||(i?this._set.set(u,s):this._set[t]=s)},o.prototype.has=function(u){if(i)return this._set.has(u);var e=n.toSetString(u);return r.call(this._set,e)},o.prototype.indexOf=function(u){if(i){var e=this._set.get(u);if(e>=0)return e}else{var t=n.toSetString(u);if(r.call(this._set,t))return this._set[t]}throw Error('"'+u+'" is not in the set.')},o.prototype.at=function(u){if(u>=0&&u<this._array.length)return this._array[u];throw Error("No element indexed by "+u)},o.prototype.toArray=function(){return this._array.slice()},e.C=o},17853(u,e,t){var n=t(53845);e.encode=function(u){var e,t="",r=u<0?(-u<<1)+1:(u<<1)+0;do e=31&r,(r>>>=5)>0&&(e|=32),t+=n.encode(e);while(r>0);return t},e.decode=function(u,e,t){var r,i,o,s,a=u.length,D=0,l=0;do{if(e>=a)throw Error("Expected more digits in base 64 VLQ value.");if(-1===(s=n.decode(u.charCodeAt(e++))))throw Error("Invalid base64 digit: "+u.charAt(e-1));o=!!(32&s),s&=31,D+=s<<l,l+=5}while(o);i=(r=D)>>1,t.value=(1&r)==1?-i:i,t.rest=e}},53845(u,e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(u){if(0<=u&&u<t.length)return t[u];throw TypeError("Must be between 0 and 63: "+u)},e.decode=function(u){return 65<=u&&u<=90?u-65:97<=u&&u<=122?u-97+26:48<=u&&u<=57?u-48+52:43==u?62:47==u?63:-1}},37120(u,e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(u,t,n,r){if(0===t.length)return -1;var i=function u(t,n,r,i,o,s){var a=Math.floor((n-t)/2)+t,D=o(r,i[a],!0);return 0===D?a:D>0?n-a>1?u(a,n,r,i,o,s):s==e.LEAST_UPPER_BOUND?n<i.length?n:-1:a:a-t>1?u(t,a,r,i,o,s):s==e.LEAST_UPPER_BOUND?a:t<0?-1:t}(-1,t.length,u,t,n,r||e.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===n(t[i],t[i-1],!0);)--i;return i}},7599(u,e,t){var n=t(59002);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(u,e){this._array.forEach(u,e)},r.prototype.add=function(u){var e,t,r,i,o;(e=this._last,t=e.generatedLine,r=u.generatedLine,i=e.generatedColumn,o=u.generatedColumn,r>t||r==t&&o>=i||0>=n.compareByGeneratedPositionsInflated(e,u))?this._last=u:this._sorted=!1,this._array.push(u)},r.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.P=r},5776(u,e){function t(u,e,t){var n=u[e];u[e]=u[t],u[t]=n}e.g=function(u,e){!function u(e,n,r,i){if(r<i){var o=Math.round(r+Math.random()*(i-r)),s=r-1;t(e,o,i);for(var a=e[i],D=r;D<i;D++)0>=n(e[D],a)&&t(e,s+=1,D);t(e,s+1,D);var l=s+1;u(e,n,r,l-1),u(e,n,l+1,i)}}(u,e,0,u.length-1)}},73697(u,e,t){var n=t(59002),r=t(37120),i=t(7604).C,o=t(17853),s=t(5776).g;function a(u,e){var t=u;return"string"==typeof u&&(t=n.parseSourceMapInput(u)),null!=t.sections?new c(t,e):new D(t,e)}function D(u,e){var t=u;"string"==typeof u&&(t=n.parseSourceMapInput(u));var r=n.getArg(t,"version"),o=n.getArg(t,"sources"),s=n.getArg(t,"names",[]),a=n.getArg(t,"sourceRoot",null),D=n.getArg(t,"sourcesContent",null),l=n.getArg(t,"mappings"),c=n.getArg(t,"file",null);if(r!=this._version)throw Error("Unsupported version: "+r);a&&(a=n.normalize(a)),o=o.map(String).map(n.normalize).map(function(u){return a&&n.isAbsolute(a)&&n.isAbsolute(u)?n.relative(a,u):u}),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(u){return n.computeSourceURL(a,u,e)}),this.sourceRoot=a,this.sourcesContent=D,this._mappings=l,this._sourceMapURL=e,this.file=c}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function c(u,e){var t=u;"string"==typeof u&&(t=n.parseSourceMapInput(u));var r=n.getArg(t,"version"),o=n.getArg(t,"sections");if(r!=this._version)throw Error("Unsupported version: "+r);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=o.map(function(u){if(u.url)throw Error("Support for url field in sections not implemented.");var t=n.getArg(u,"offset"),r=n.getArg(t,"line"),i=n.getArg(t,"column");if(r<s.line||r===s.line&&i<s.column)throw Error("Section offsets must be ordered and non-overlapping.");return s=t,{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new a(n.getArg(u,"map"),e)}})}a.fromSourceMap=function(u,e){return D.fromSourceMap(u,e)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(u,e){var t=u.charAt(e);return";"===t||","===t},a.prototype._parseMappings=function(u,e){throw Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(u,e,t){switch(t||a.GENERATED_ORDER){case a.GENERATED_ORDER:r=this._generatedMappings;break;case a.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var r,i=this.sourceRoot;r.map(function(u){var e=null===u.source?null:this._sources.at(u.source);return{source:e=n.computeSourceURL(i,e,this._sourceMapURL),generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:null===u.name?null:this._names.at(u.name)}},this).forEach(u,e||null)},a.prototype.allGeneratedPositionsFor=function(u){var e=n.getArg(u,"line"),t={source:n.getArg(u,"source"),originalLine:e,originalColumn:n.getArg(u,"column",0)};if(t.source=this._findSourceIndex(t.source),t.source<0)return[];var i=[],o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(void 0===u.column)for(var a=s.originalLine;s&&s.originalLine===a;)i.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var D=s.originalColumn;s&&s.originalLine===e&&s.originalColumn==D;)i.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return i},D.prototype=Object.create(a.prototype),D.prototype.consumer=a,D.prototype._findSourceIndex=function(u){var e,t=u;if(null!=this.sourceRoot&&(t=n.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);for(e=0;e<this._absoluteSources.length;++e)if(this._absoluteSources[e]==u)return e;return -1},D.fromSourceMap=function(u,e){var t=Object.create(D.prototype),r=t._names=i.fromArray(u._names.toArray(),!0),o=t._sources=i.fromArray(u._sources.toArray(),!0);t.sourceRoot=u._sourceRoot,t.sourcesContent=u._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=u._file,t._sourceMapURL=e,t._absoluteSources=t._sources.toArray().map(function(u){return n.computeSourceURL(t.sourceRoot,u,e)});for(var a=u._mappings.toArray().slice(),c=t.__generatedMappings=[],p=t.__originalMappings=[],A=0,C=a.length;A<C;A++){var F=a[A],h=new l;h.generatedLine=F.generatedLine,h.generatedColumn=F.generatedColumn,F.source&&(h.source=o.indexOf(F.source),h.originalLine=F.originalLine,h.originalColumn=F.originalColumn,F.name&&(h.name=r.indexOf(F.name)),p.push(h)),c.push(h)}return s(t.__originalMappings,n.compareByOriginalPositions),t},D.prototype._version=3,Object.defineProperty(D.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),D.prototype._parseMappings=function(u,e){for(var t,r,i,a,D,c=1,p=0,A=0,C=0,F=0,h=0,E=u.length,f=0,g={},m={},d=[],B=[];f<E;)if(";"===u.charAt(f))c++,f++,p=0;else if(","===u.charAt(f))f++;else{for((t=new l).generatedLine=c,a=f;a<E&&!this._charIsMappingSeparator(u,a);a++);if(i=g[r=u.slice(f,a)])f+=r.length;else{for(i=[];f<a;)o.decode(u,f,m),D=m.value,f=m.rest,i.push(D);if(2===i.length)throw Error("Found a source, but no line and column");if(3===i.length)throw Error("Found a source and line, but no column");g[r]=i}t.generatedColumn=p+i[0],p=t.generatedColumn,i.length>1&&(t.source=F+i[1],F+=i[1],t.originalLine=A+i[2],A=t.originalLine,t.originalLine+=1,t.originalColumn=C+i[3],C=t.originalColumn,i.length>4&&(t.name=h+i[4],h+=i[4])),B.push(t),"number"==typeof t.originalLine&&d.push(t)}s(B,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=B,s(d,n.compareByOriginalPositions),this.__originalMappings=d},D.prototype._findMapping=function(u,e,t,n,i,o){if(u[t]<=0)throw TypeError("Line must be greater than or equal to 1, got "+u[t]);if(u[n]<0)throw TypeError("Column must be greater than or equal to 0, got "+u[n]);return r.search(u,e,i,o)},D.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var e=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var t=this._generatedMappings[u+1];if(e.generatedLine===t.generatedLine){e.lastGeneratedColumn=t.generatedColumn-1;continue}}e.lastGeneratedColumn=1/0}},D.prototype.originalPositionFor=function(u){var e={generatedLine:n.getArg(u,"line"),generatedColumn:n.getArg(u,"column")},t=this._findMapping(e,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(u,"bias",a.GREATEST_LOWER_BOUND));if(t>=0){var r=this._generatedMappings[t];if(r.generatedLine===e.generatedLine){var i=n.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),i=n.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var o=n.getArg(r,"name",null);return null!==o&&(o=this._names.at(o)),{source:i,line:n.getArg(r,"originalLine",null),column:n.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},D.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return null==u})},D.prototype.sourceContentFor=function(u,e){if(!this.sourcesContent)return null;var t,r=this._findSourceIndex(u);if(r>=0)return this.sourcesContent[r];var i=u;if(null!=this.sourceRoot&&(i=n.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(t=n.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if("file"==t.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!t.path||"/"==t.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(e)return null;throw Error('"'+i+'" is not in the SourceMap.')},D.prototype.generatedPositionFor=function(u){var e=n.getArg(u,"source");if((e=this._findSourceIndex(e))<0)return{line:null,column:null,lastColumn:null};var t={source:e,originalLine:n.getArg(u,"line"),originalColumn:n.getArg(u,"column")},r=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(u,"bias",a.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===t.source)return{line:n.getArg(i,"generatedLine",null),column:n.getArg(i,"generatedColumn",null),lastColumn:n.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},c.prototype=Object.create(a.prototype),c.prototype.constructor=a,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var u=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)u.push(this._sections[e].consumer.sources[t]);return u}}),c.prototype.originalPositionFor=function(u){var e={generatedLine:n.getArg(u,"line"),generatedColumn:n.getArg(u,"column")},t=r.search(e,this._sections,function(u,e){var t=u.generatedLine-e.generatedOffset.generatedLine;return t||u.generatedColumn-e.generatedOffset.generatedColumn}),i=this._sections[t];return i?i.consumer.originalPositionFor({line:e.generatedLine-(i.generatedOffset.generatedLine-1),column:e.generatedColumn-(i.generatedOffset.generatedLine===e.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(u,e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t].consumer.sourceContentFor(u,!0);if(n)return n}if(e)return null;throw Error('"'+u+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(u){for(var e=0;e<this._sections.length;e++){var t=this._sections[e];if(-1!==t.consumer._findSourceIndex(n.getArg(u,"source"))){var r=t.consumer.generatedPositionFor(u);if(r)return{line:r.line+(t.generatedOffset.generatedLine-1),column:r.column+(t.generatedOffset.generatedLine===r.line?t.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},c.prototype._parseMappings=function(u,e){this.__generatedMappings=[],this.__originalMappings=[];for(var t=0;t<this._sections.length;t++)for(var r=this._sections[t],i=r.consumer._generatedMappings,o=0;o<i.length;o++){var a=i[o],D=r.consumer._sources.at(a.source);D=n.computeSourceURL(r.consumer.sourceRoot,D,this._sourceMapURL),this._sources.add(D),D=this._sources.indexOf(D);var l=null;a.name&&(l=r.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l));var c={source:D,generatedLine:a.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(r.generatedOffset.generatedLine===a.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(c),"number"==typeof c.originalLine&&this.__originalMappings.push(c)}s(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),s(this.__originalMappings,n.compareByOriginalPositions)}},32(u,e,t){var n=t(17853),r=t(59002),i=t(7604).C,o=t(7599).P;function s(u){u||(u={}),this._file=r.getArg(u,"file",null),this._sourceRoot=r.getArg(u,"sourceRoot",null),this._skipValidation=r.getArg(u,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(u){var e=u.sourceRoot,t=new s({file:u.file,sourceRoot:e});return u.eachMapping(function(u){var n={generated:{line:u.generatedLine,column:u.generatedColumn}};null!=u.source&&(n.source=u.source,null!=e&&(n.source=r.relative(e,n.source)),n.original={line:u.originalLine,column:u.originalColumn},null!=u.name&&(n.name=u.name)),t.addMapping(n)}),u.sources.forEach(function(n){var i=n;null!==e&&(i=r.relative(e,n)),t._sources.has(i)||t._sources.add(i);var o=u.sourceContentFor(n);null!=o&&t.setSourceContent(n,o)}),t},s.prototype.addMapping=function(u){var e=r.getArg(u,"generated"),t=r.getArg(u,"original",null),n=r.getArg(u,"source",null),i=r.getArg(u,"name",null);this._skipValidation||this._validateMapping(e,t,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:null!=t&&t.line,originalColumn:null!=t&&t.column,source:n,name:i})},s.prototype.setSourceContent=function(u,e){var t=u;null!=this._sourceRoot&&(t=r.relative(this._sourceRoot,t)),null!=e?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(t)]=e):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(u,e,t){var n=e;if(null==e){if(null==u.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=u.file}var o=this._sourceRoot;null!=o&&(n=r.relative(o,n));var s=new i,a=new i;this._mappings.unsortedForEach(function(e){if(e.source===n&&null!=e.originalLine){var i=u.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=i.source&&(e.source=i.source,null!=t&&(e.source=r.join(t,e.source)),null!=o&&(e.source=r.relative(o,e.source)),e.originalLine=i.line,e.originalColumn=i.column,null!=i.name&&(e.name=i.name))}var D=e.source;null==D||s.has(D)||s.add(D);var l=e.name;null==l||a.has(l)||a.add(l)},this),this._sources=s,this._names=a,u.sources.forEach(function(e){var n=u.sourceContentFor(e);null!=n&&(null!=t&&(e=r.join(t,e)),null!=o&&(e=r.relative(o,e)),this.setSourceContent(e,n))},this)},s.prototype._validateMapping=function(u,e,t,n){if(e&&"number"!=typeof e.line&&"number"!=typeof e.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!u||!("line"in u)||!("column"in u)||!(u.line>0)||!(u.column>=0)||e||t||n){if(!u||!("line"in u)||!("column"in u)||!e||!("line"in e)||!("column"in e)||!(u.line>0)||!(u.column>=0)||!(e.line>0)||!(e.column>=0)||!t)throw Error("Invalid mapping: "+JSON.stringify({generated:u,source:t,original:e,name:n}))}},s.prototype._serializeMappings=function(){for(var u,e,t,i,o=0,s=1,a=0,D=0,l=0,c=0,p="",A=this._mappings.toArray(),C=0,F=A.length;C<F;C++){if(e=A[C],u="",e.generatedLine!==s)for(o=0;e.generatedLine!==s;)u+=";",s++;else if(C>0){if(!r.compareByGeneratedPositionsInflated(e,A[C-1]))continue;u+=","}u+=n.encode(e.generatedColumn-o),o=e.generatedColumn,null!=e.source&&(i=this._sources.indexOf(e.source),u+=n.encode(i-c),c=i,u+=n.encode(e.originalLine-1-D),D=e.originalLine-1,u+=n.encode(e.originalColumn-a),a=e.originalColumn,null!=e.name&&(t=this._names.indexOf(e.name),u+=n.encode(t-l),l=t)),p+=u}return p},s.prototype._generateSourcesContent=function(u,e){return u.map(function(u){if(!this._sourcesContents)return null;null!=e&&(u=r.relative(e,u));var t=r.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)},s.prototype.toJSON=function(){var u={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(u.file=this._file),null!=this._sourceRoot&&(u.sourceRoot=this._sourceRoot),this._sourcesContents&&(u.sourcesContent=this._generateSourcesContent(u.sources,u.sourceRoot)),u},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.x=s},25060(u,e,t){var n=t(32).x,r=t(59002),i=/(\r?\n)/,o="$$$isSourceNode$$$";function s(u,e,t,n,r){this.children=[],this.sourceContents={},this.line=null==u?null:u,this.column=null==e?null:e,this.source=null==t?null:t,this.name=null==r?null:r,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(u,e,t){var n=new s,o=u.split(i),a=0,D=function(){return u()+(u()||"");function u(){return a<o.length?o[a++]:void 0}},l=1,c=0,p=null;return e.eachMapping(function(u){if(null!==p)if(l<u.generatedLine)A(p,D()),l++,c=0;else{var e=o[a]||"",t=e.substr(0,u.generatedColumn-c);o[a]=e.substr(u.generatedColumn-c),c=u.generatedColumn,A(p,t),p=u;return}for(;l<u.generatedLine;)n.add(D()),l++;if(c<u.generatedColumn){var e=o[a]||"";n.add(e.substr(0,u.generatedColumn)),o[a]=e.substr(u.generatedColumn),c=u.generatedColumn}p=u},this),a<o.length&&(p&&A(p,D()),n.add(o.splice(a).join(""))),e.sources.forEach(function(u){var i=e.sourceContentFor(u);null!=i&&(null!=t&&(u=r.join(t,u)),n.setSourceContent(u,i))}),n;function A(u,e){if(null===u||void 0===u.source)n.add(e);else{var i=t?r.join(t,u.source):u.source;n.add(new s(u.originalLine,u.originalColumn,i,e,u.name))}}},s.prototype.add=function(u){if(Array.isArray(u))u.forEach(function(u){this.add(u)},this);else if(u[o]||"string"==typeof u)u&&this.children.push(u);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},s.prototype.prepend=function(u){if(Array.isArray(u))for(var e=u.length-1;e>=0;e--)this.prepend(u[e]);else if(u[o]||"string"==typeof u)this.children.unshift(u);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},s.prototype.walk=function(u){for(var e,t=0,n=this.children.length;t<n;t++)(e=this.children[t])[o]?e.walk(u):""!==e&&u(e,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(u){var e,t,n=this.children.length;if(n>0){for(t=0,e=[];t<n-1;t++)e.push(this.children[t]),e.push(u);e.push(this.children[t]),this.children=e}return this},s.prototype.replaceRight=function(u,e){var t=this.children[this.children.length-1];return t[o]?t.replaceRight(u,e):"string"==typeof t?this.children[this.children.length-1]=t.replace(u,e):this.children.push("".replace(u,e)),this},s.prototype.setSourceContent=function(u,e){this.sourceContents[r.toSetString(u)]=e},s.prototype.walkSourceContents=function(u){for(var e=0,t=this.children.length;e<t;e++)this.children[e][o]&&this.children[e].walkSourceContents(u);for(var n=Object.keys(this.sourceContents),e=0,t=n.length;e<t;e++)u(r.fromSetString(n[e]),this.sourceContents[n[e]])},s.prototype.toString=function(){var u="";return this.walk(function(e){u+=e}),u},s.prototype.toStringWithSourceMap=function(u){var e={code:"",line:1,column:0},t=new n(u),r=!1,i=null,o=null,s=null,a=null;return this.walk(function(u,n){e.code+=u,null!==n.source&&null!==n.line&&null!==n.column?((i!==n.source||o!==n.line||s!==n.column||a!==n.name)&&t.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:e.line,column:e.column},name:n.name}),i=n.source,o=n.line,s=n.column,a=n.name,r=!0):r&&(t.addMapping({generated:{line:e.line,column:e.column}}),i=null,r=!1);for(var D=0,l=u.length;D<l;D++)10===u.charCodeAt(D)?(e.line++,e.column=0,D+1===l?(i=null,r=!1):r&&t.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:e.line,column:e.column},name:n.name})):e.column++}),this.walkSourceContents(function(u,e){t.setSourceContent(u,e)}),{code:e.code,map:t}},e.e=s},59002(u,e){e.getArg=function(u,e,t){if(e in u)return u[e];if(3==arguments.length)return t;throw Error('"'+e+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(u){var e=u.match(t);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}function i(u){var e="";return u.scheme&&(e+=u.scheme+":"),e+="//",u.auth&&(e+=u.auth+"@"),u.host&&(e+=u.host),u.port&&(e+=":"+u.port),u.path&&(e+=u.path),e}function o(u){var t=u,n=r(u);if(n){if(!n.path)return u;t=n.path}for(var o,s=e.isAbsolute(t),a=t.split(/\/+/),D=0,l=a.length-1;l>=0;l--)"."===(o=a[l])?a.splice(l,1):".."===o?D++:D>0&&(""===o?(a.splice(l+1,D),D=0):(a.splice(l,2),D--));return(""===(t=a.join("/"))&&(t=s?"/":"."),n)?(n.path=t,i(n)):t}function s(u,e){""===u&&(u="."),""===e&&(e=".");var t=r(e),s=r(u);if(s&&(u=s.path||"/"),t&&!t.scheme)return s&&(t.scheme=s.scheme),i(t);if(t||e.match(n))return e;if(s&&!s.host&&!s.path)return s.host=e,i(s);var a="/"===e.charAt(0)?e:o(u.replace(/\/+$/,"")+"/"+e);return s?(s.path=a,i(s)):a}e.urlParse=r,e.urlGenerate=i,e.normalize=o,e.join=s,e.isAbsolute=function(u){return"/"===u.charAt(0)||t.test(u)},e.relative=function(u,e){""===u&&(u="."),u=u.replace(/\/$/,"");for(var t=0;0!==e.indexOf(u+"/");){var n=u.lastIndexOf("/");if(n<0||(u=u.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return e;++t}return Array(t+1).join("../")+e.substr(u.length+1)};var a=!("__proto__"in Object.create(null));function D(u){return u}function l(u){if(!u)return!1;var e=u.length;if(e<9||95!==u.charCodeAt(e-1)||95!==u.charCodeAt(e-2)||111!==u.charCodeAt(e-3)||116!==u.charCodeAt(e-4)||111!==u.charCodeAt(e-5)||114!==u.charCodeAt(e-6)||112!==u.charCodeAt(e-7)||95!==u.charCodeAt(e-8)||95!==u.charCodeAt(e-9))return!1;for(var t=e-10;t>=0;t--)if(36!==u.charCodeAt(t))return!1;return!0}function c(u,e){return u===e?0:null===u?1:null===e?-1:u>e?1:-1}e.toSetString=a?D:function(u){return l(u)?"$"+u:u},e.fromSetString=a?D:function(u){return l(u)?u.slice(1):u},e.compareByOriginalPositions=function(u,e,t){var n=c(u.source,e.source);return 0!==n||0!=(n=u.originalLine-e.originalLine)||0!=(n=u.originalColumn-e.originalColumn)||t||0!=(n=u.generatedColumn-e.generatedColumn)||0!=(n=u.generatedLine-e.generatedLine)?n:c(u.name,e.name)},e.compareByGeneratedPositionsDeflated=function(u,e,t){var n=u.generatedLine-e.generatedLine;return 0!==n||0!=(n=u.generatedColumn-e.generatedColumn)||t||0!==(n=c(u.source,e.source))||0!=(n=u.originalLine-e.originalLine)||0!=(n=u.originalColumn-e.originalColumn)?n:c(u.name,e.name)},e.compareByGeneratedPositionsInflated=function(u,e){var t=u.generatedLine-e.generatedLine;return 0!==t||0!=(t=u.generatedColumn-e.generatedColumn)||0!==(t=c(u.source,e.source))||0!=(t=u.originalLine-e.originalLine)||0!=(t=u.originalColumn-e.originalColumn)?t:c(u.name,e.name)},e.parseSourceMapInput=function(u){return JSON.parse(u.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(u,e,t){if(e=e||"",u&&("/"!==u[u.length-1]&&"/"!==e[0]&&(u+="/"),e=u+e),t){var n=r(t);if(!n)throw Error("sourceMapURL could not be parsed");if(n.path){var a=n.path.lastIndexOf("/");a>=0&&(n.path=n.path.substring(0,a+1))}e=s(i(n),e)}return o(e)}},62096(u,e,t){t(32).x,t(73697),e.ee=t(25060).e},5018(u){u.exports=function(u,e){if(!(u instanceof e))throw TypeError("Cannot call a class as a function")},u.exports.__esModule=!0,u.exports.default=u.exports},44668(u,e,t){var n=t(56347);function r(u,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,n(r.key),r)}}u.exports=function(u,e,t){return e&&r(u.prototype,e),t&&r(u,t),Object.defineProperty(u,"prototype",{writable:!1}),u},u.exports.__esModule=!0,u.exports.default=u.exports},23878(u,e,t){var n=t(14319).default;u.exports=function(u,e){if("object"!=n(u)||!u)return u;var t=u[Symbol.toPrimitive];if(void 0!==t){var r=t.call(u,e||"default");if("object"!=n(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(u)},u.exports.__esModule=!0,u.exports.default=u.exports},56347(u,e,t){var n=t(14319).default,r=t(23878);u.exports=function(u){var e=r(u,"string");return"symbol"==n(e)?e:e+""},u.exports.__esModule=!0,u.exports.default=u.exports},14319(u){function e(t){return u.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},u.exports.__esModule=!0,u.exports.default=u.exports,e(t)}u.exports=e,u.exports.__esModule=!0,u.exports.default=u.exports}};
|